Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/powerMediation.R
Calculate power for testing slope for simple linear regression.
1 2 3 4  power.SLR.rho(n,
rho2,
alpha = 0.05,
verbose = TRUE)

n 
sample size. 
rho2 
square of the correlation between the outcome and the predictor. 
alpha 
type I error rate. 
verbose 
logical. 
The power is for testing the null hypothesis λ=0 versus the alternative hypothesis λ\neq 0 for the simple linear regressions:
y_i=γ+λ x_i + ε_i, ε_i\sim N(0, σ^2_{e})
power 
power for testing if b_2=0. 
delta 
√{n}/√{1/ρ^21}. 
The test is a twosided test. For onesided tests, please double the
significance level. For example, you can set alpha=0.10
to obtain onesided test at 5% significance level.
Weiliang Qiu [email protected]
Dupont, W.D. and Plummer, W.D.. Power and Sample Size Calculations for Studies Involving Linear Regression. Controlled Clinical Trials. 1998;19:589601.
minEffect.SLR
,
power.SLR
,
ss.SLR.rho
,
ss.SLR
.
1  power.SLR.rho(n=100, rho2=0.6, alpha = 0.05, verbose = TRUE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.