cond_power_rule_t_ts: Conditional power sample size reassessment rule (two-sample...

Description Usage Arguments Details Value Author(s)

Description

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.

Usage

1
2
cond_power_rule_t_ts(x1, y1, delta = 1, target = 0.9, alpha = 0.025,
  maxN = length(x1) * 6, rob_var = T, ...)

Arguments

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 robust_pooled_variance

m

Target mean value

Details

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

Value

Total sample size required to achieve the target power

Author(s)

Florian Klinglmueller


floatofmath/adaperm documentation built on May 16, 2019, 1:18 p.m.