This function fits the bivariate random-effects model of the logit-transformed sensitivity and specificity (Reitsma et al., 2005) by the maximum likelihood method, and calculates the SAUC and its confidence interval. Publication bias is not considered.
Arguments
- TP
Specify the column of true positives (TP).
- FN
Specify the column of false negatives (FN).
- FP
Specify the column of false positives (FP).
- TN
Specify the column of true negatives (TN).
- data
A data frame containing the columns of
TP,FN,FP, andTN. One row corresponds to one study. Ifdata = NULL(default),TP,FN,FP, andTNare evaluated in the calling environment (e.g., numeric vectors).- cc.value
Value added to the cells for the “continuity correction”, within (0, 1]. The default is 0.5.
- cc.type
Type of the “continuity correction” (
c("single", "all")). The default is"single"."single":cc.valueis added to all the cells of the studies with at least one zero cell."all":cc.valueis added to all the cells of all the studies if at least one study has a zero cell.- ci.level
The confidence level of the confidence intervals, within (0, 1). The default is 0.95.
- parset
A list of the settings for the estimation, which updates the default settings. Bad initial values and bounds may cause non-convergence.
inital.values: The initial values ofc(mu1, mu2, tau1, tau2, rho). The default isc(0.1, 0.1, 0.1, 0.1, -0.1). If it isNULLor not a vector of length 5, the estimates bymixmetaare used.mu.bound: \(\mu_1\) and \(\mu_2\) are searched within[-mu.bound, mu.bound]. The default is 5.tau.bound: \(\tau_1\) and \(\tau_2\) are searched within[eps, tau.bound]. The default is 5.eps: The lower bound of \(\tau_1\) and \(\tau_2\). The default is1e-5.
Value
The output of nlminb
(par is (mu1, mu2, tau1, tau2, rho); tau1 and tau2 are standard deviations)
with the following additional elements.
If nlminb failed, an object of class "try-error".
var.mlThe inverse of the numerical Hessian matrix of the negative log-likelihood.
sauc.ciSAUC and its confidence interval.
mu1.ci,mu2.ciThe estimates and confidence intervals of \(\mu_1\) and \(\mu_2\), and of the sensitivity and specificity.
par.allAll the estimates:
mu1,mu2,tau1^2,tau2^2,tau12,sauc,sens,spec.
References
Reitsma JB, Glas AS, Rutjes AW, Scholten RJ, Bossuyt PM, Zwinderman AH (2005). Bivariate analysis of sensitivity and specificity produces informative summary measures in diagnostic reviews. Journal of Clinical Epidemiology, 58(10), 982–990. doi:10.1016/j.jclinepi.2005.02.022
Examples
## load data
data(IVD)
fit <- sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD)
fit$par.all
#> mu1 mu2 tau1^2 tau2^2 tau12 sauc sens
#> 1.4839917 1.8236493 0.3569361 0.6825891 -0.2094967 0.8735863 0.8151747
#> spec
#> 0.8610034
fit$sauc.ci
#> sauc sauc.lb sauc.ub
#> 0.8735863 0.8057723 0.9200719