Last chance! 50% off unlimited learning
Sale ends in
Calculate power for testing slope for simple linear regression.
power.SLR.rho(n,
rho2,
alpha = 0.05,
verbose = TRUE)
sample size.
square of the correlation between the outcome and the predictor.
type I error rate.
logical. TRUE
means printing power; FALSE
means not printing power.
power for testing if
The power is for testing the null hypothesis
Dupont, W.D. and Plummer, W.D.. Power and Sample Size Calculations for Studies Involving Linear Regression. Controlled Clinical Trials. 1998;19:589-601.
# NOT RUN {
power.SLR.rho(n=100, rho2=0.6, alpha = 0.05, verbose = TRUE)
# }
Run the code above in your browser using DataLab