critical_coef
critical_coef.Rd
This function allows to calculate the critical beta.
Arguments
- seb
a numeric vector of standard error of the regression coefficients.
- n
a number corresponding to the sample size.
- p
number of parameters.
- df
degrees of freedom.
- conf.level
the confidence level to set the confidence interval, default is set to 0.95.
- hypothesis
a character string indicating the alternative hypothesis ("less", "greater" or "two.tailed").
- test
a parameter to specify which test to apply, either "t" for a t-test or "z" for a z-test.
Examples
# critical value from sample size and standard errors of the parameters
n <- 170
p = 3
seb <- c(25,.25,.10)
critical_coef(seb = seb,n = n, p = p)
#> $bc
#> [1] 49.3589441 0.4935894 0.1974358
#>
#> $test
#> [1] "t"
#>