mlrF.partial: Power calculation for a multiple linear regression partial F test
Description
Conducts power and sample size calculations for a partial F test
in a multiple linear regression model.
This is a test that one or more coefficients are equal to zero
after controlling for a set of control predictors.
Can solve for power, N or alpha.
Usage
mlrF.partial(
N = NULL,
p = NULL,
q = NULL,
pc = NULL,
Rsq.red = NULL,
Rsq.full = NULL,
alpha = 0.05,
power = NULL,
v = FALSE
)
Value
A list of the arguments (including the computed one).
Arguments
N
The sample size.
p
The number of control predictors.
q
The number of test predictors. Set to 1 when only pc is specified.
pc
The partial correlation coefficient. Either both Rsq terms OR pc must be specified.
Rsq.red
The squared population multiple correlation coefficient for the reduced model. Either both Rsq terms OR pc must be specified.
Rsq.full
The squared population multiple correlation coefficient for the full model. Either both Rsq terms OR pc must be specified.
alpha
The significance level or type 1 error rate; defaults to 0.05.
power
The specified level of power.
v
Either TRUE for verbose output or FALSE to output computed argument only.