Usage
SampleSize.VUS(mu.minus, mu0, mu.plus, s.minus, s0, s.plus, p = 0, q =
0, lam.minus = 1/3, lam0 = 1/3, lam.plus = 1/3, typeIerror = 0.05, margin = 0.05,subdivisions = 50000, ...)
Arguments
mu.minus
A numeric value, the sample mean estimate for the mean parameter of normal
distribution in $D-$.
mu0
A numeric value, the sample mean estimate for the mean parameter of normal
distribution in $D0$.
mu.plus
A numeric value, the sample mean estimate for the mean parameter of normal
distribution in $D+$.
s.minus
A numeric value, the sample standard deviation (SD) estimate for the SD
parameter of normal distribution in $D-$.
s0
A numeric value, the sample SD estimate for the SD parameter of normal
distribution in $D0$.
s.plus
A numeric value, the sample SD estimate for the SD parameter of normal
distribution in $D+$.
p
A numeric value, the minimum required specificity, $0
q
A numeric value, the minimum desired sensitivity,$0
lam.minus
A numeric value, the expected population proportion of the $D_-$ group, used for
sample size calculation. Default, lam.minus=1/3. The proportions of the three ordinal
groups (lam.minus, lam0, lam.plus) should sum to 1.
lam0
A numeric value, the expected population proportion of the $D_0$ group, used for
sample size calculation. Default, lam0=1/3. The proportions of the three ordinal
groups (lam.minus, lam0, lam.plus) should sum to 1.
lam.plus
A numeric value, the expected population proportion of the $D_+$ group, used for
sample size calculation. Default, lam.plus=1/3.The proportions of the three ordinal
groups (lam.minus, lam0, lam.plus) should sum to 1.
typeIerror
A numeric value, (1-typeIerror)*100% confidence interval (CI) in sample size
calculation. Default typeIerror=0.05, i.e., calculate 95% CI.
margin
A numeric value, the margin of error on the VUS estimates in sample size
calculation. Default, margin=0.05.
subdivisions
A numeric value, the number of subintervals for integration using
adaptive quadrature in the R function
integrate
. Default, subdivisions=50000.
...
Other arguments that can be passed to the R function
integrate
, e.g., abs.tol, rel.tol, stop.on.error etc.