conditional_mle | R Documentation |
Proportion estimated using the MLE and confidence intervals based the asymptotic distribution of the estimator.
conditional_mle(
R1 = NULL,
R2 = NULL,
R3 = NULL,
R4 = NULL,
n = R1 + R2 + R3 + R4,
pi0,
gamma = 0.05,
alpha0 = 0,
alpha = 0,
beta = 0,
V = NULL,
...
)
R1 |
A |
R2 |
A |
R3 |
A |
R4 |
A |
n |
A |
pi0 |
A |
gamma |
A |
alpha0 |
A |
alpha |
A |
beta |
A |
V |
A |
... |
Additional arguments. |
A cpreval
object with the structure:
estimate: Estimated proportion.
sd: Estimated standard error of the estimator.
ci_asym: Asymptotic confidence interval at the 1 - gamma confidence level.
gamma: Confidence level (i.e. 1 - gamma) for confidence intervals.
method: Estimation method (in this case mle).
measurement: A vector with (alpha0, alpha, beta).
beta0: Estimated false negative rate of the official procedure.
ci_beta0: Asymptotic confidence interval (1 - gamma confidence level) for beta0.
boundary: A boolean variable indicating if the estimates falls at the boundary of the parameter space.
pi0: Value of pi0 (input value).
sampling: Type of sampling considered ("random" or "weighted").
V: Average sum of squared sampling weights if weighted/stratified is used (otherwise NULL).
n: Sample size.
avar_beta0: Estimated asymptotic variance of beta0
...: Additional parameters.
Stephane Guerrier, Maria-Pia Victoria-Feser, Christoph Kuzmics
# Samples without measurement error
X = sim_Rs(theta = 3/100, pi0 = 1/100, n = 1500, seed = 18)
conditional_mle(R1 = X$R1, R2 = X$R2, R3 = X$R3, R4 = X$R4, pi0 = X$pi0)
# With measurement error
X = sim_Rs(theta = 30/1000, pi0 = 10/1000, n = 1500, alpha0 = 0.001,
alpha = 0.01, beta0 = 0.05, beta = 0.05, seed = 18)
conditional_mle(R1 = X$R1, R2 = X$R2, R3 = X$R3, R4 = X$R4, pi0 = X$pi0)
conditional_mle(R1 = X$R1, R2 = X$R2, R3 = X$R3, R4 = X$R4, pi0 = X$pi0,
alpha0 = 0.001, alpha = 0.01, beta = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.