Description Usage Arguments Details Value Author(s)
Conditional power rule for the two-sample t-test using the function using the normal distribution sample size formula. Reestimates the standard deviation from the first stage and recomputes the sample size such that the power to reject the null meets the target power assuming that the mean (paired treatment difference) is equal to a prespecified value.
1 2 | cond_power_rule_t_ts(x1, y1, delta = 1, target = 0.9, alpha = 0.025,
maxN = length(x1) * 6, rob_var = T, ...)
|
x1 |
First stage observations |
y1 |
treatment group obseravtions |
target |
Target power |
alpha |
Significance level |
maxN |
Maximum sample size |
rob_var |
Use robust variance estimate |
... |
additional arguments to |
m |
Target mean value |
In case the robust variance estimate is used we compute the variance as (iqr(c(x1-median(x1),y1-median(y1)))/1.349)^2
this leads to a slight underestimation of the required sample size - for the moment you could increase the target power to correct
Total sample size required to achieve the target power
Florian Klinglmueller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.