A list containing four sample sizes, where two of them are for a Wald test and two for a score test.
The two sample sizes for each test correspond to the equations for
\(n_{1}\) and \(n_{2}\).
Arguments
prev
Number between 0 and 1 giving the prevalence of disease. No default.
logOR
Vector of ordered log-odds ratios for the confounders and exposure.
The last log-odds ratio in the vector is for the exposure. If the
option data (below) is specified, then the order must match the
order of data.
No default.
data
Matrix, data frame or a list of type file.list
that gives a sample from the distribution of the confounders and exposure.
If a matrix or data frame, then the last column consists of random values for the exposure,
while the other columns are for the confounders. The order of the columns must match the order of
the vector logOR.
The default is NULL.
size.2sided
Number between 0 and 1 giving the size of the 2-sided hypothesis test. The default is 0.05.
power
Number between 0 and 1 for the desired power of the test. The default is 0.9.
cc.ratio
Number between 0 and 1 for the proportion of cases in the case-control sample.
The default is 0.5.
interval
Two element vector giving the interval to search for the estimated intercept parameter.
The default is c(-100, 100).
tol
Positive value giving the stopping tolerance for the root finding method to estimate
the intercept parameter.
The default is 0.0001.