View source: R/q.samp.size.long.R
q.samp.size.long | R Documentation |
Calculate sample size for comparing mean changes for longitudinal data involving 2 time points based on powerMediation::ssLongFull
q.samp.size.long(ref.mean=NULL, comp.mean=NULL, baseline.sd=NULL, endline.sd=NULL, dropout=0.2, arms=2, rho=0.5, sig.level = 0.05 , power = 0.8)
ref.mean |
Mean for change in values within a treatment group |
comp.mean |
Mean for change in values within the comparison group |
baseline.sd |
Standard deviation for baseline values |
endline.sd |
Standard deviation for end-of-study/follow-up values |
dropout |
Dropout rate to be accounted for in sample size calculation. Default is 0.2 |
arms |
Number of arms in the planned study |
rho |
Correlation coefficient between baseline and follow-up values within a treatment group. Default is 0.5 |
sig.level |
Significance level. Default is 0.05 |
power |
Power. Default is 0.8 |
A list containing the mean difference, mean ratio, number of completers per arm, total sample size per arm, total sample size for the study and number of study arms
Abdul Malik Sulley <asulley@uwo.ca> May 8, 2020
powerMediation::ssLongFull
ref.mean <- 57.2 comp.mean <- 22.8 baseline.sd <- 21.1 endline.sd <- 32.2 q.samp.size.long(ref.mean, comp.mean, baseline.sd, endline.sd, dropout=0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.