Chi-squared test
This class implements a chi-squared test for superiority trials. A trial
with binary outcomes in two groups T
and C
is assumed.
The function setupChiSquare
creates an object of class
ChiSquare
.
setupChiSquare( alpha, beta, r = 1, delta, alternative = c("greater", "smaller"), n_max = Inf, ... )
alpha |
One-sided type I error rate. |
beta |
Type II error rate. |
r |
Allocation ratio between experimental and control group. |
delta |
Difference of effect size between alternative and null hypothesis. |
alternative |
Does the alternative hypothesis contain greater
( |
n_max |
Maximal overall sample size. If the recalculated sample size
is greater than |
... |
Further optional arguments. |
The following methods are available for this class:
toer
, pow
, n_dist
,
adjusted_alpha
, and n_fix
.
Check the design specific documentation for details.
For non-inferiority trials use the function setupFarringtonManning
.
An object of class ChiSquare
.
design <- setupChiSquare(alpha = .025, beta = .2, r = 1, delta = 0.2, alternative = "greater")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.