View source: R/relR_samplesize_solve.R
relR_samplesize_opterr | R Documentation |
Function to calculate the error in estimated sample size for use in optimize function
relR_samplesize_opterr(
m,
R_a,
R_b,
p_a,
N,
alpha,
alternative,
power,
sensitivity,
specificity,
overdispersion
)
m |
the sample size. |
R_a |
Numeric (Positive). The assumed R among the group in the denominator of the ratio. Input value must be greater than 0. |
R_b |
Numeric (Positive). The assumed R among the group in the numerator of the ratio. Input value must be greater than 0. |
p_a |
Numeric. The proportion of the population in group |
N |
Numeric (Positive). The size of the infected pool. Only one of
|
alpha |
Numeric. The desired alpha level. Default: 0.05 |
alternative |
Character. Specifies the alternative hypothesis.
Must be: |
power |
Numeric. The desired power. Must be a value between 0 and 1. Default: 0.8. |
sensitivity |
Numeric. The sensitivity of the linkage criteria. Must be between 0 and 1. Default: 1. |
specificity |
Numeric. The specificity of the linkage criteria. Must be between 0 and 1. Default: 1. |
overdispersion |
Numeric (Positive). An overdispersion parameter, set
if the assumed distribution of the number of edges is negative binomial.
If |
Squared error between the input sample size and estimated sample size
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.