powered by
Obtains the power given sample size or obtains the sample size given power for the chi-square test for unordered multi-sample binomial response.
getDesignUnorderedBinom( beta = NA_real_, n = NA_real_, ngroups = NA_integer_, pi = NA_real_, allocationRatioPlanned = NA_integer_, rounding = TRUE, alpha = 0.05 )
An S3 class designUnorderedBinom object with the following components:
designUnorderedBinom
power: The power to reject the null hypothesis.
power
alpha: The two-sided significance level.
alpha
n: The maximum number of subjects.
n
ngroups: The number of treatment groups.
ngroups
pi: The response probabilities for the treatment groups.
pi
effectsize: The effect size for the chi-square test.
effectsize
allocationRatioPlanned: Allocation ratio for the treatment groups.
allocationRatioPlanned
rounding: Whether to round up sample size.
rounding
The type II error.
The total sample size.
The number of treatment groups.
The response probabilities for the treatment groups.
Allocation ratio for the treatment groups.
Whether to round up sample size. Defaults to 1 for sample size rounding.
The two-sided significance level. Defaults to 0.05.
Kaifeng Lu, kaifenglu@gmail.com
(design1 <- getDesignUnorderedBinom( beta = 0.1, ngroups = 3, pi = c(0.1, 0.25, 0.5), alpha = 0.05))
Run the code above in your browser using DataLab