mlrF.partial | R Documentation |
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.
mlrF.partial(
N = NULL,
p = NULL,
q = NULL,
pc = NULL,
Rsq.red = NULL,
Rsq.full = NULL,
alpha = 0.05,
power = NULL,
v = FALSE
)
N |
The sample size. |
p |
The number of control predictors. |
q |
The number of test predictors. |
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. |
A list of the arguments (including the computed one).
mlrF.partial(N = 80, p = 3, q = 2, Rsq.red = 0.25, Rsq.full = 0.35)
mlrF.partial(N = 150, p = 4, pc = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.