| Title: | Diagnostic and Prognostic Meta-Analysis with Sensitivity Analysis |
|---|---|
| Description: | Provides methods for meta-analysis of diagnostic test accuracy and prognostic studies. The package estimates the summary receiver operating characteristic (SROC) curve for diagnostic test accuracy and the time-dependent SROC curve for prognostic studies. It also provides likelihood-based sensitivity analyses to assess the potential impact of publication bias on these curves. The methods are described in Hattori and Zhou (2016) <doi:10.1002/sim.7029>, Reitsma et al. (2005) <doi:10.1016/j.jclinepi.2005.02.022>, Zhou et al. (2023) <doi:10.1002/sim.9643>, and Zhou et al. (2025) <doi:10.1017/rsm.2025.14>. |
| Authors: | Ryota Kinugawa [aut, ctb], Kota Nakaike [aut, ctb], Yamato
Hashimoto [aut, ctb], Yi Zhou [aut, cre]
|
| Maintainer: | Yi Zhou <[email protected]> |
| License: | GPL (>= 3) |
| Version: | 0.1.1 |
| Built: | 2026-12-04 05:44:24 UTC |
| Source: | https://github.com/kusuri26/diagprogmeta |
This package implements the meta-analysis of diagnostic test accuracy (DTA) studies and prognostic studies by the summary receiver operating characteristic (SROC) curve and the area under the SROC curve (SAUC), together with the likelihood-based sensitivity analysis for publication bias.
Diagnostic studies: the bivariate random-effects model of the logit-transformed sensitivity and specificity (Reitsma et al., 2005) doi:10.1016/j.jclinepi.2005.02.022, and the sensitivity analysis for publication bias on the SROC curve and SAUC (Zhou et al., 2023) doi:10.1002/sim.9643.
Prognostic studies: the time-dependent SROC curve and SAUC, where the time-dependent sensitivity and specificity are reconstructed from the published survival probabilities (Hattori and Zhou, 2016) doi:10.1002/sim.7029 and the sensitivity analysis for publication bias on the time-dependent SROC curve and SAUC (Zhou et al., 2025) doi:10.1017/rsm.2025.14.
| Without publication bias | Sensitivity analysis for publication bias | |
| Diagnostic studies (SROC) | reitsma.sroc |
srocsa.t |
| Prognostic studies (time-dependent SROC) | hattori.tsroc |
tsrocsa.lrt
|
sauc calculates the SAUC and its confidence interval.
Objects of class "sroc" (from reitsma.sroc and hattori.tsroc):
print.sroc, summary.sroc (printed by print.summary.sroc),
and plot.sroc.
Objects of class "srocsa" (from srocsa.t and tsrocsa.lrt):
print.srocsa, summary.srocsa, and plot.srocsa.
For the time-dependent results, the plot methods draw one plot for each time point
(press <Return> for the next in an interactive session), or all the time points in one panel
(overlay = TRUE).
Ki67: meta-analysis of Ki-67 as a prognostic marker in early breast cancer.
Maintainer: Yi Zhou [email protected] (ORCID)
Authors:
Yi Zhou [email protected] (ORCID)
Ryota Kinugawa [contributor]
Kota Nakaike [contributor]
Yamato Hashimoto [contributor]
Hattori S, Zhou XH (2016). Time-dependent summary receiver operating characteristics for meta-analysis of prognostic studies. Statistics in Medicine, 35(26), 4746–4763. doi:10.1002/sim.7029
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
Zhou Y, Huang A, Hattori S (2023). A likelihood-based sensitivity analysis for publication bias on the summary receiver operating characteristic in meta-analysis of diagnostic test accuracy. Statistics in Medicine, 42(6), 781–798. doi:10.1002/sim.9643
Zhou Y, Huang A, Hattori S (2025). Sensitivity analysis for reporting bias on the time-dependent summary receiver operating characteristics curve in meta-analysis of prognosis studies with time-to-event outcomes. Research Synthesis Methods, 16(3), 528–549. doi:10.1017/rsm.2025.14
Useful links:
Report bugs at https://github.com/kusuri26/DiagProgMeta/issues
A dataset from a meta-analysis of diagnostic studies evaluating neutrophil CD64 expression for the early diagnosis of bacterial infection. The dataset contains study-level 2 x 2 diagnostic accuracy data together with information on cutoff values, measurement units, and subgroups.
CD64CD64
A data frame with 27 rows (studies) and 11 variables:
Study identifier.
Author or authors of the study.
Number of true positive cases.
Number of false negative cases.
Number of false positive cases.
Number of true negative cases.
Diagnostic cutoff value used in the study.
Measurement unit of the cutoff value.
Measurement-unit group used in the study.
Cutoff-value group used in the study.
Subgroup of the study used for analysis.
Li S, Huang X, Chen Z, Zhong H, Peng Q, Deng Y, Qin X, Zhao J (2013). Neutrophil CD64 expression as a biomarker in the early diagnosis of bacterial infection: A meta-analysis. International Journal of Infectious Diseases, 17(1), e12–e23. doi:10.1016/j.ijid.2012.07.017
data(CD64)data(CD64)
This function estimates the time-dependent SROC curve and SAUC in meta-analysis of prognostic studies, without considering publication bias. At each time point, the time-dependent sensitivity and specificity are reconstructed from the published survival probabilities of the test-positive and test-negative groups, and the bivariate random-effects model of the logit-transformed sensitivity and specificity (with the within-study covariance) is fitted by the maximum likelihood method.
hattori.tsroc( time.points, study.os, time.os, n1.os, n0.os, s1.os, s0.os, data.os = NULL, study.lnhr, lnhr, var.lnHR, data.lnhr = NULL, time.med, n1.med, n0.med, s1.med, s0.med, data.mt = NULL, ci.level = 0.95, parallel.ncores = 1L, parset = list() )hattori.tsroc( time.points, study.os, time.os, n1.os, n0.os, s1.os, s0.os, data.os = NULL, study.lnhr, lnhr, var.lnHR, data.lnhr = NULL, time.med, n1.med, n0.med, s1.med, s0.med, data.mt = NULL, ci.level = 0.95, parallel.ncores = 1L, parset = list() )
time.points |
A numeric vector of the time points at which the time-dependent SROC curve is estimated.
Each value should be included in |
study.os |
Specify the column of the study ID (numeric) in |
time.os |
Specify the column of the time at which the survival probabilities are reported.
The unit of time should be the same as |
n1.os |
Specify the column of the number of subjects in the test-positive group (group 1). |
n0.os |
Specify the column of the number of subjects in the test-negative group (group 0). |
s1.os |
Specify the column of the survival probability at |
s0.os |
Specify the column of the survival probability at |
data.os |
A data frame of the survival data, with one row for each study and each time point.
Within each study, the rows should be sorted in ascending order of time.
If |
study.lnhr |
Specify the column of the study ID (numeric) in |
lnhr |
Specify the column of lnHR (group 1 versus group 0). |
var.lnHR |
Specify the column of the variance of lnHR. |
data.lnhr |
A data frame of lnHR, with one row for each study.
If |
time.med |
Specify the column of the median follow-up time. |
n1.med |
Specify the column of the number of subjects in group 1. |
n0.med |
Specify the column of the number of subjects in group 0. |
s1.med |
Specify the column of the survival probability at |
s0.med |
Specify the column of the survival probability at |
data.mt |
A data frame of the median follow-up time, with one row for each study reporting it.
It is used to estimate the censoring distribution common to all the studies
(see details in |
ci.level |
The confidence level of the confidence intervals, within (0, 1). The default is 0.95. |
parallel.ncores |
The number of cores used for the parallel computation over |
parset |
A list of the settings for the estimation, which updates the default settings. Bad initial values and bounds may cause non-convergence.
|
The time-dependent sensitivity and specificity, and their within-study variances and covariance
are calculated in the same way as tsrocsa.lrt.
study.lnhr, lnhr, and var.lnHR are required as input,
but lnHR is not used in the estimation of this function.
An object of class "sroc":
a list with one element for each time point (named "t = xx").
Each element is the same as the output of reitsma.sroc
(its data element also contains the within-study covariance v12),
or an object of class "try-error" if the estimation failed at that time point.
The attributes "call", "ci.level", and "n.study" (the number of studies
at each time point) are used by the methods.
The results can be shown by print.sroc, summary.sroc, and plot.sroc.
Hattori, S., & Zhou, X.-H. (2016). Time-dependent summary receiver operating characteristics for meta-analysis of prognostic studies. Statistics in Medicine, 35(26), 4746–4763. doi:10.1002/sim.7029
print.sroc,
summary.sroc,
plot.sroc,
reitsma.sroc,
tsrocsa.lrt
## load data data(Ki67) head(Ki67$OS) head(Ki67$HR) head(Ki67$MT) ## Define datasets of the HR Ki67_OS <- Ki67$OS Ki67_HR <- Ki67$HR Ki67_MT <- Ki67$MT ## lnHR and its variance from HR and its 95 percent CI Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit <- hattori.tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67_MT ) ## main results: one row for each time point fit ## estimates with SEs and confidence intervals at each time point print(fit) summary(fit) ## plots plot(fit, ask = FALSE) # all time points, one per page, no prompt plot(fit, time = 36, add.study = TRUE) # one time point with the studies plot(fit, overlay = TRUE) # all time points in one panel ## interactive: press <Return> to move to the next time point if (interactive()) plot(fit, add.study = TRUE, study.size = "precision") ## Using paralell computing fitp <- hattori.tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67_MT, parallel.ncores = 2L) print(fitp)## load data data(Ki67) head(Ki67$OS) head(Ki67$HR) head(Ki67$MT) ## Define datasets of the HR Ki67_OS <- Ki67$OS Ki67_HR <- Ki67$HR Ki67_MT <- Ki67$MT ## lnHR and its variance from HR and its 95 percent CI Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit <- hattori.tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67_MT ) ## main results: one row for each time point fit ## estimates with SEs and confidence intervals at each time point print(fit) summary(fit) ## plots plot(fit, ask = FALSE) # all time points, one per page, no prompt plot(fit, time = 36, add.study = TRUE) # one time point with the studies plot(fit, overlay = TRUE) # all time points in one panel ## interactive: press <Return> to move to the next time point if (interactive()) plot(fit, add.study = TRUE, study.size = "precision") ## Using paralell computing fitp <- hattori.tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67_MT, parallel.ncores = 2L) print(fitp)
A dataset from a meta-analysis of diagnostic studies evaluating methods for diagnosing intravascular device-related bloodstream infection (IVD-BSI). The dataset contains study-level 2 x 2 diagnostic accuracy data together with information on diagnostic type and cutoff values.
IVDIVD
A data frame with 33 rows (studies) and 8 variables:
Study identifier.
Number of true positive cases.
Number of false negative cases.
Number of false positive cases.
Number of true negative cases.
Cutoff-value group used in the study.
Type of diagnostic method or test.
Diagnostic cutoff value or cutoff information.
Safdar N, Fine JP, Maki DG (2005). Meta-analysis: methods for diagnosing intravascular device-related bloodstream infection. Annals of Internal Medicine, 142(6), 451–466. doi:10.7326/0003-4819-142-6-200503150-00011
data(IVD)data(IVD)
A dataset from a meta-analysis of prognostic studies evaluating the prognostic value of Ki-67 expression in early breast cancer. The dataset contains study-level overall survival, hazard-ratio, and median survival-time data.
Ki67Ki67
A list of 3 datasets:
Dataset containing overall survival data. It includes
author (study author), study (study identifier),
t (follow-up time in month),
n1 and n0 (sample sizes in the two comparison groups), and
s1 and s0 (survival probabilities in the two groups).
Dataset containing hazard-ratio data. It includes
author (study author), study (study identifier),
HR (hazard ratio), and ci.low and ci.up
(lower and upper confidence limits of the hazard ratio).
Dataset containing median follow-up time data. It includes
author (study author), study (study identifier),
n1 and n0 (sample sizes in the two comparison groups),
mct_mo (median follow-up time in months),
s1_mct and s0_mct (survival probabilities
at median follow-up time in the two comparison groups).
de Azambuja E, Cardoso F, de Castro G, Colozza M, Mano MS, Durbecq V, Sotiriou C, Larsimont D, Piccart-Gebhart MJ, Paesmans M (2007). Ki-67 as prognostic marker in early breast cancer: a meta-analysis of published studies involving 12 155 patients. British Journal of Cancer, 96(10), 1504–1513. doi:10.1038/sj.bjc.6603756
data(Ki67) # Overall survival data head(Ki67$OD) # Hazard-ratio data head(Ki67$HR) # Median follow-up time data head(Ki67$MT)data(Ki67) # Overall survival data head(Ki67$OD) # Hazard-ratio data head(Ki67$HR) # Median follow-up time data head(Ki67$MT)
Plot method for objects of class "sroc" returned by
reitsma.sroc (one SROC curve) and hattori.tsroc
(one time-dependent SROC curve for each time point).
For the output of hattori.tsroc, the curves of the time points are drawn
one per page by default; in an interactive session the user is prompted
("Hit <Return> to see next plot") before each new page.
Alternatively, all the time points can be overlaid in one panel (overlay = TRUE).
## S3 method for class 'sroc' plot( x, time = NULL, time.index = FALSE, overlay = FALSE, ask = NULL, add.spoint = TRUE, spoint.region = FALSE, plot.ci = FALSE, ci.level = 0.95, add.study = FALSE, study.size = c("fixed", "precision"), study.pch = 1, study.cex = 1, study.col = NULL, add.sauc = TRUE, legend.pos = "bottomright", sroc.cols = NULL, sroc.lty = 1, sroc.lwd = 2, ci.lty = 2, ci.lwd = 1, sp.pch = 19, sp.cex = 1.2, xlab = "FPR (1 - specificity)", ylab = "TPR (sensitivity)", main = NULL, addon = FALSE, n.grid = 300, ... )## S3 method for class 'sroc' plot( x, time = NULL, time.index = FALSE, overlay = FALSE, ask = NULL, add.spoint = TRUE, spoint.region = FALSE, plot.ci = FALSE, ci.level = 0.95, add.study = FALSE, study.size = c("fixed", "precision"), study.pch = 1, study.cex = 1, study.col = NULL, add.sauc = TRUE, legend.pos = "bottomright", sroc.cols = NULL, sroc.lty = 1, sroc.lwd = 2, ci.lty = 2, ci.lwd = 1, sp.pch = 19, sp.cex = 1.2, xlab = "FPR (1 - specificity)", ylab = "TPR (sensitivity)", main = NULL, addon = FALSE, n.grid = 300, ... )
x |
An object of class |
time |
Time points to plot (only for |
time.index |
Logical; if |
overlay |
Logical; if |
ask |
Logical; whether to wait for <Return> before each new page.
Default |
add.spoint |
Logical; whether to add the summary operating point. |
spoint.region |
Logical; whether to add the confidence region of the summary point (an ellipse on the logit scale, back-transformed). |
plot.ci |
Logical; whether to add pointwise confidence bands of the SROC curve
(delta method using |
ci.level |
Confidence level of the bands and the region. Default 0.95. |
add.study |
Logical; whether to add the observed studies
( |
study.size |
Size of the study points: |
study.pch, study.cex
|
Symbol and (base) size of the study points. |
study.col |
Color of the study points. Default |
add.sauc |
Logical; whether to show the SAUC (and its CI) in a legend. |
legend.pos |
Position of the legend (see |
sroc.cols |
Color(s) of the SROC curves. Recycled over time points when |
sroc.lty, sroc.lwd
|
Line type and width of the SROC curves. |
ci.lty, ci.lwd
|
Line type and width of the confidence bands. |
sp.pch, sp.cex
|
Symbol and size of the summary points. |
xlab, ylab
|
Axis labels. |
main |
Main title. Default |
addon |
Logical; if |
n.grid |
Number of grid points to draw each curve. |
... |
Other graphical arguments passed to |
Invisibly, a list (one element per drawn fit) of data frames with the
curve coordinates (fpr, tpr, and lb, ub when plot.ci = TRUE).
data(IVD) fit1 <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) plot(fit1, plot.ci = TRUE, spoint.region = TRUE) plot(fit1, add.study = TRUE) # add the studies plot(fit1, add.study = TRUE, study.size = "precision") # point size by precision ## time-dependent SROC curves data(Ki67) Ki67_HR <- Ki67$HR Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit2 <- hattori.tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67$OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67$MT ) plot(fit2, ask = FALSE) # one page per time point, no prompt plot(fit2, time = 36) # a single time point plot(fit2, overlay = TRUE) # all time points in one paneldata(IVD) fit1 <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) plot(fit1, plot.ci = TRUE, spoint.region = TRUE) plot(fit1, add.study = TRUE) # add the studies plot(fit1, add.study = TRUE, study.size = "precision") # point size by precision ## time-dependent SROC curves data(Ki67) Ki67_HR <- Ki67$HR Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit2 <- hattori.tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67$OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67$MT ) plot(fit2, ask = FALSE) # one page per time point, no prompt plot(fit2, time = 36) # a single time point plot(fit2, overlay = TRUE) # all time points in one panel
Plot method for 'srocsa' objects.
This function plots the SROC curves and the summary points for each marginal selection probability ,
from the sensitivity analysis by srocsa.t or tsrocsa.lrt.
For srocsa.t, one plot is created.
For tsrocsa.lrt, one plot is created at each time point, with the title time = xx;
in an interactive session the user is prompted ("Hit <Return> to see next plot")
before each new time point.
The same has the same color and line type at all the time points.
Alternatively, all the time points can be overlaid in one panel (overlay = TRUE):
the color indicates the time point and the line type indicates .
## S3 method for class 'srocsa' plot( x, time = NULL, p = NULL, overlay = FALSE, ask = NULL, sroc.cols = NULL, sroc.lty = 1, sroc.lwd = 2, add.spoint = TRUE, sp.pch = 19, sp.cex = 1.2, plot.ci = FALSE, spoint.region = FALSE, ci.level = 0.95, ci.lty = 2, ci.lwd = 1, add.study = FALSE, study.size = c("fixed", "precision"), study.pch = 1, study.cex = 1, study.col = NULL, add.sauc = TRUE, legend.pos = "bottomright", legend.cex = 0.85, main = NULL, xlab = "FPR (1 - specificity)", ylab = "TPR (sensitivity)", n.grid = 300, ... )## S3 method for class 'srocsa' plot( x, time = NULL, p = NULL, overlay = FALSE, ask = NULL, sroc.cols = NULL, sroc.lty = 1, sroc.lwd = 2, add.spoint = TRUE, sp.pch = 19, sp.cex = 1.2, plot.ci = FALSE, spoint.region = FALSE, ci.level = 0.95, ci.lty = 2, ci.lwd = 1, add.study = FALSE, study.size = c("fixed", "precision"), study.pch = 1, study.cex = 1, study.col = NULL, add.sauc = TRUE, legend.pos = "bottomright", legend.cex = 0.85, main = NULL, xlab = "FPR (1 - specificity)", ylab = "TPR (sensitivity)", n.grid = 300, ... )
x |
A fitted object returned by the function |
time |
Time points to plot (only for the results from |
p |
Values of the marginal selection probability |
overlay |
Logical; if |
ask |
Logical; whether to wait for <Return> before each new time point.
Default |
sroc.cols |
Colors of the SROC curves: one for each |
sroc.lty |
Line types of the SROC curves, recycled over |
sroc.lwd |
Line width of the SROC curves. |
add.spoint |
Whether to add the summary points on the SROC curves. |
sp.pch |
Type of the summary points. |
sp.cex |
Size of the summary points. |
plot.ci |
Whether to add the pointwise confidence bands of the SROC curves
(delta method using |
spoint.region |
Whether to add the confidence regions of the summary points. |
ci.level |
Confidence level of the bands and regions. Default 0.95. |
ci.lty, ci.lwd
|
Line type and width of the bands and regions. |
add.study |
Whether to add the observed (published) studies
( |
study.size |
Size of the study points: |
study.pch, study.cex
|
Symbol and (base) size of the study points. |
study.col |
Color of the study points. Default |
add.sauc |
Whether to show the SAUC (and its CI) for each |
legend.pos |
Position of the legend. See |
legend.cex |
Size of the legend text. |
main |
Title of the plot.
If |
xlab |
Label of x-axis. |
ylab |
Label of y-axis. |
n.grid |
Number of grid points to draw each curve. |
... |
Other arguments in function |
For in tsrocsa.lrt, the SROC curve is calculated from
of the trivariate model,
i.e., the parameters of the logit-transformed sensitivity and specificity.
x, invisibly. Called for the side effect of plotting.
srocsa.t,
tsrocsa.lrt,
plot.sroc
## load data data(IVD) fit1 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6)) plot(fit1) ## set the colors and add the studies plot(fit1, sroc.cols = c("black", "blue", "red"), add.study = TRUE) ## only p = 1 and p = 0.6, with confidence bands plot(fit1, p = c(1, 0.6), plot.ci = TRUE, sroc.cols = c("black", "red")) ## time-dependent results data(Ki67) Ki67_HR <- Ki67$HR Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit2 <- tsrocsa.lrt( time.points = c(36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67$OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67$MT, senp.p = c(1, 0.8) ) plot(fit2, ask = FALSE) # one plot per time point, no prompt plot(fit2, time = 60) # one time point plot(fit2, overlay = TRUE) # all time points in one panel (color: time, line type: p) plot(fit2, overlay = TRUE, p = 0.8) # all time points for one p## load data data(IVD) fit1 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6)) plot(fit1) ## set the colors and add the studies plot(fit1, sroc.cols = c("black", "blue", "red"), add.study = TRUE) ## only p = 1 and p = 0.6, with confidence bands plot(fit1, p = c(1, 0.6), plot.ci = TRUE, sroc.cols = c("black", "red")) ## time-dependent results data(Ki67) Ki67_HR <- Ki67$HR Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit2 <- tsrocsa.lrt( time.points = c(36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67$OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67$MT, senp.p = c(1, 0.8) ) plot(fit2, ask = FALSE) # one plot per time point, no prompt plot(fit2, time = 60) # one time point plot(fit2, overlay = TRUE) # all time points in one panel (color: time, line type: p) plot(fit2, overlay = TRUE, p = 0.8) # all time points for one p
This function prints the main results of reitsma.sroc
(SROC curve) and hattori.tsroc (time-dependent SROC curve; one row for each time point),
without considering publication bias:
the number of studies, convergence of the optimizer, the SAUC, the summary sensitivity and specificity
with their confidence intervals, and the estimates of .
## S3 method for class 'sroc' print(x, digits = 3, ...)## S3 method for class 'sroc' print(x, digits = 3, ...)
x |
A fitted object returned by the function |
digits |
The number of decimal places of the results. |
... |
Other arguments in function |
"yes" indicates that nlminb converged (convergence = 0).
The confidence interval is sauc.ci of the fitted object
(calculated on the logit scale; see sauc).
and ;
the confidence intervals are the Wald intervals of and , back-transformed.
Between-study standard deviations (not variances) and correlation of the logit-transformed sensitivity and specificity.
See summary.sroc for the standard errors and confidence intervals of all the parameters.
x, invisibly. Called for the side effect of printing.
reitsma.sroc,
hattori.tsroc,
summary.sroc,
plot.sroc
## load data data(IVD) fit <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) fit print(fit, digits = 4)## load data data(IVD) fit <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) fit print(fit, digits = 4)
This function prints the main results:
convergence of the optimizer, SAUC estimates, and parameter estimates with standard errors (SE)
for each marginal selection probability .
For the time-dependent results, the results are printed at each time point.
## S3 method for class 'srocsa' print(x, digits = 3, ...)## S3 method for class 'srocsa' print(x, digits = 3, ...)
x |
A fitted object returned by the function |
digits |
The digits of the results |
... |
Other arguments in function |
1 indicates that nlminb converged (convergence = 0).
The SE is calculated by the delta method. The confidence interval is calculated on the logit scale, so it is not symmetric around the SAUC.
Between-study standard deviations (not variances).
"-" indicates not applicable (, or the model without selection).
The SE of alpha is not available.
tsroc
Shown as , because tsroc fits the model without selection.
Print the main results of a srocsa object
srocsa.t,
hattori.tsroc,
tsrocsa.lrt,
summary.srocsa,
plot.srocsa
## load data data(IVD) ## print the results fit1 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6)) print(fit1) fit2 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6), c11 = 0.5) print(fit2, digits = 4)## load data data(IVD) ## print the results fit1 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6)) print(fit1) fit2 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6), c11 = 0.5) print(fit2, digits = 4)
Print the summary of the results of reitsma.sroc or
hattori.tsroc; see summary.sroc.
For hattori.tsroc, the results are printed for each time point.
## S3 method for class 'summary.sroc' print(x, digits = 3, ...)## S3 method for class 'summary.sroc' print(x, digits = 3, ...)
x |
An object returned by the function |
digits |
The number of decimal places of the results. |
... |
Other arguments in function |
x, invisibly. Called for the side effect of printing.
Print the summary of 'srocsa':
the main results (see print.srocsa) and the estimates of all the parameters
(par.all) of the fitted models.
## S3 method for class 'summary.srocsa' print(x, digits = 3, ...)## S3 method for class 'summary.srocsa' print(x, digits = 3, ...)
x |
An object returned by the function |
digits |
The digits of the results |
... |
Other arguments in function |
Print the summary of a srocsa object
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.
reitsma.sroc( TP, FN, FP, TN, data = NULL, cc.value = 0.5, cc.type = c("single", "all"), ci.level = 0.95, parset = list() )reitsma.sroc( TP, FN, FP, TN, data = NULL, cc.value = 0.5, cc.type = c("single", "all"), ci.level = 0.95, parset = list() )
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 |
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” ( |
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.
|
An object of class "sroc": 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.ci
The estimates and confidence intervals of and ,
and of the sensitivity and specificity.
par.allAll the estimates:
mu1, mu2, tau1^2, tau2^2, tau12, sauc, sens, spec.
dataA data frame of the study-level logit-transformed sensitivity (y1) and
specificity (y2) and their within-study variances (v1, v2),
used by plot.sroc to add the studies (add.study = TRUE).
The call and ci.level are kept in the attributes "call" and "ci.level".
The results can be shown by print.sroc, summary.sroc, and plot.sroc.
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
print.sroc,
summary.sroc,
plot.sroc,
sauc,
srocsa.t
## load data data(IVD) fit <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) ## main results fit ## estimates with SEs and confidence intervals print(fit) summary(fit) ## elements of the fitted model fit$par.all fit$sauc.ci ## SROC curve with the summary point plot(fit) ## add the pointwise confidence band and the confidence region of the summary point plot(fit, plot.ci = TRUE, spoint.region = TRUE) plot(fit, add.study = TRUE) # studies as open circles plot(fit, add.study = TRUE, study.size = "precision") # size is proportional to 1/sqrt(v1 + v2)## load data data(IVD) fit <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) ## main results fit ## estimates with SEs and confidence intervals print(fit) summary(fit) ## elements of the fitted model fit$par.all fit$sauc.ci ## SROC curve with the summary point plot(fit) ## add the pointwise confidence band and the confidence region of the summary point plot(fit, plot.ci = TRUE, spoint.region = TRUE) plot(fit, add.study = TRUE) # studies as open circles plot(fit, add.study = TRUE, study.size = "precision") # size is proportional to 1/sqrt(v1 + v2)
This function calculates the area under the SROC curve (SAUC) of the bivariate random-effects model, and its confidence interval when the variance-covariance matrix of the estimates is given.
sauc(mu1, mu2, tau1, tau2, rho, var.matrix = NULL, ci.level)sauc(mu1, mu2, tau1, tau2, rho, var.matrix = NULL, ci.level)
mu1 |
The mean of the logit-transformed sensitivity. |
mu2 |
The mean of the logit-transformed specificity. |
tau1 |
The between-study standard deviation of the logit-transformed sensitivity. |
tau2 |
The between-study standard deviation of the logit-transformed specificity. |
rho |
The between-study correlation of the logit-transformed sensitivity and specificity. |
var.matrix |
The 5 x 5 variance-covariance matrix of the estimates of
|
ci.level |
The confidence level of the confidence interval, within (0, 1).
It is required when |
The SROC curve is
,
where is the false positive rate (1 - specificity).
SAUC is its integral over by integrate.
The standard error of SAUC is calculated by the delta method. The confidence interval is calculated on the logit scale and back-transformed, so it is not symmetric around SAUC.
A named numeric vector of sauc, sauc.lb, and sauc.ub
(SAUC and the lower and upper bounds of its confidence interval).
sauc.lb and sauc.ub are NA if var.matrix = NULL,
and sauc is NA if the integration failed.
## SAUC without confidence interval sauc(mu1 = 1.5, mu2 = 2, tau1 = 0.8, tau2 = 0.9, rho = -0.3) ## SAUC with confidence interval from the fitted model data(IVD) fit <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) est <- fit$par sauc(mu1 = est[1], mu2 = est[2], tau1 = est[3], tau2 = est[4], rho = est[5], var.matrix = fit$var.ml, ci.level = 0.95)## SAUC without confidence interval sauc(mu1 = 1.5, mu2 = 2, tau1 = 0.8, tau2 = 0.9, rho = -0.3) ## SAUC with confidence interval from the fitted model data(IVD) fit <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) est <- fit$par sauc(mu1 = est[1], mu2 = est[2], tau1 = est[3], tau2 = est[4], rho = est[5], var.matrix = fit$var.ml, ci.level = 0.95)
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.
sroc( TP, FN, FP, TN, data = NULL, cc.value = 0.5, cc.type = c("single", "all"), ci.level = 0.95, parset = list() )sroc( TP, FN, FP, TN, data = NULL, cc.value = 0.5, cc.type = c("single", "all"), ci.level = 0.95, parset = list() )
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 |
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” ( |
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.
|
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.ci
The estimates and confidence intervals of and ,
and of the sensitivity and specificity.
par.allAll the estimates:
mu1, mu2, tau1^2, tau2^2, tau12, sauc, sens, spec.
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
## load data data(IVD) fit <- sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) fit$par.all fit$sauc.ci## load data data(IVD) fit <- sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) fit$par.all fit$sauc.ci
This function conducts the likelihood-based sensitivity analysis for publication bias
on the summary receiver operating characteristic (SROC) curve and the area under the SROC curve (SAUC)
in meta-analysis of diagnostic test accuracy (Zhou et al., 2023).
The bivariate random-effects model of the logit-transformed sensitivity and specificity is combined with
a selection function on the -statistic of the linear combination of them
with the contrast vector .
The model is fitted for each marginal selection probability in sa.p.
srocsa.t( TP, FN, TN, FP, data = NULL, cc.value = 0.5, cc.type = c("single", "all"), sa.p = 0.9, c11 = NULL, ci.level = 0.95, parallel.ncores = 1L, parset = list() )srocsa.t( TP, FN, TN, FP, data = NULL, cc.value = 0.5, cc.type = c("single", "all"), sa.p = 0.9, c11 = NULL, ci.level = 0.95, parallel.ncores = 1L, parset = list() )
TP |
Specify the column of true positives (TP). |
FN |
Specify the column of false negatives (FN). |
TN |
Specify the column of true negatives (TN). |
FP |
Specify the column of false positives (FP). |
data |
A data frame containing the columns of |
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” ( |
sa.p |
A numeric vector of the marginal selection probabilities |
c11 |
Pre-specified value of |
ci.level |
The confidence level of the confidence intervals, within (0, 1). The default is 0.95. |
parallel.ncores |
The number of cores used for the parallel computation over |
parset |
A list of the settings for the estimation, which updates the default settings. Bad bounds may cause non-convergence.
The element |
Let and be the logit-transformed sensitivity
and specificity of study , and and be their variances.
follows the bivariate normal distribution with mean
and variance-covariance matrix
,
where has the between-study standard deviations
and correlation .
The probability of publishing study is modeled as
, where
,
, and .
For given and the other parameters, is determined such that
the mean of the inverse of the marginal selection probabilities of the observed studies equals .
See sauc.
The initial values of
are the estimates of the bivariate model without selection by mixmeta.
The initial values of and are 0.1.
An object of class "srocsa":
a list with one element for each value of sa.p and the element call.
Each element is the output of nlminb
(par is (mu1, mu2, tau1, tau2, rho, beta), followed by c11 when c11 = NULL)
with the following additional elements, or NULL if the estimation failed.
var.mlThe inverse of the numerical Hessian matrix of the negative log-likelihood.
When , only for (mu1, mu2, tau1, tau2, rho).
sauc.ciSAUC and its confidence interval.
beta, alpha
The estimates of and
(NA when ).
mu1.ci, mu2.ci
The estimates and confidence intervals of and ,
and of the sensitivity and specificity.
par.allAll the estimates:
mu1, mu2, tau1^2, tau2^2, tau12, c1^2, c2^2,
beta, alpha, sauc, sens, spec.
The attribute "data" is a data frame of the study-level logit-transformed sensitivity (y1)
and specificity (y2) and their variances (v1, v2),
used by plot.srocsa (add.study = TRUE).
The results can be shown by print.srocsa, summary.srocsa, and plot.srocsa.
Zhou Y, Huang A, Hattori S (2023). A likelihood-based sensitivity analysis for publication bias on the summary receiver operating characteristic in meta-analysis of diagnostic test accuracy. Statistics in Medicine, 42(6), 781–798. doi:10.1002/sim.9643
print.srocsa,
summary.srocsa,
plot.srocsa,
reitsma.sroc,
sauc
## load data data(IVD) ## estimate c1^2 fit1 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8)) fit1 ## three selection probabilities fit1b <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6)) fit1b ## fix c1^2 = 0.5 fit2 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6), c11 = 0.5) print(fit2) summary(fit2) plot(fit2) ## continuity correction for all the studies fit3 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = 0.8, cc.type = "all") fit3 ## parallel computation fit2p <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6), c11 = 0.5, parallel.ncores = 2L) print(fit2p)## load data data(IVD) ## estimate c1^2 fit1 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8)) fit1 ## three selection probabilities fit1b <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6)) fit1b ## fix c1^2 = 0.5 fit2 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6), c11 = 0.5) print(fit2) summary(fit2) plot(fit2) ## continuity correction for all the studies fit3 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = 0.8, cc.type = "all") fit3 ## parallel computation fit2p <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6), c11 = 0.5, parallel.ncores = 2L) print(fit2p)
Summarize the results of reitsma.sroc or hattori.tsroc
(for each time point): convergence of the optimizer, the log-likelihood,
the estimates of
with standard errors (SE) and confidence intervals,
the summary sensitivity, specificity, and SAUC, and all the estimates (par.all).
## S3 method for class 'sroc' summary(object, ...)## S3 method for class 'sroc' summary(object, ...)
object |
A fitted object returned by the function |
... |
Not used. |
The SEs are the square roots of the diagonal elements of var.ml
(the inverse of the numerical Hessian matrix of the negative log-likelihood).
The confidence intervals are the Wald intervals of and ,
of and , and of
(Fisher's z), back-transformed;
so they stay within the parameter space.
The confidence level is ci.level used in the fitting function (0.95 by default).
An object of class "summary.sroc": a list with
callThe call of the fitting function (if recorded).
time.dependentTRUE for the results of hattori.tsroc.
ci.levelThe confidence level.
fitsA list with one element for each fit (time point), each a list of
ok, K (number of studies), conv, message, logLik,
coef (matrix of the estimates, SEs, and confidence limits),
sauc, sens, spec (estimate and confidence limits), and par.all.
It is printed by print.summary.sroc.
print.sroc,
print.summary.sroc,
plot.sroc
data(IVD) fit <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) summary(fit) ## the coefficient table as a matrix s <- summary(fit) s$fits[[1]]$coef ## for hattori.tsroc(), one element of s$fits for each time point data(Ki67) Ki67_HR <- Ki67$HR Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit2 <- hattori.tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67$OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67$MT ) s2 <- summary(fit2) s2$fits[["t = 36"]]$coefdata(IVD) fit <- reitsma.sroc(TP = TP, FN = FN, FP = FP, TN = TN, data = IVD) summary(fit) ## the coefficient table as a matrix s <- summary(fit) s$fits[[1]]$coef ## for hattori.tsroc(), one element of s$fits for each time point data(Ki67) Ki67_HR <- Ki67$HR Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit2 <- hattori.tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67$OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67$MT ) s2 <- summary(fit2) s2$fits[["t = 36"]]$coef
This function summarizes the results:
the main results (see print.srocsa) and the estimates of all the parameters
(par.all) of the fitted models at each time point and each marginal selection probability .
All the elements of the fitted models are kept in blocks of the returned object.
## S3 method for class 'srocsa' summary(object, digits = 3, ...)## S3 method for class 'srocsa' summary(object, digits = 3, ...)
object |
A fitted object returned by the function |
digits |
The digits of the results |
... |
Other arguments in function |
A list that consists of summaries of a srocsa object:
call, type of the model, table of SAUC estimates (sauc),
table of parameter estimates and SE (coef),
and the fitted models at each time point and each (blocks)
srocsa.t,
hattori.tsroc,
tsrocsa.lrt,
print.srocsa,
print.summary.srocsa
## load data data(IVD) fit1 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6)) summary(fit1) ## tables of the estimates res <- summary(fit1) res$sauc res$coef## load data data(IVD) fit1 <- srocsa.t(TP = TP, FN = FN, TN = TN, FP = FP, data = IVD, sa.p = c(1, 0.8, 0.6)) summary(fit1) ## tables of the estimates res <- summary(fit1) res$sauc res$coef
This function estimates the time-dependent SROC curve and SAUC in meta-analysis of prognostic studies, without considering publication bias. At each time point, the time-dependent sensitivity and specificity are reconstructed from the published survival probabilities of the test-positive and test-negative groups (Combescure et al., 2016), and the bivariate random-effects model of the logit-transformed sensitivity and specificity (with the within-study covariance) is fitted by the maximum likelihood method.
tsroc( time.points, study.os, time.os, n1.os, n0.os, s1.os, s0.os, data.os = NULL, study.lnhr, lnhr, var.lnHR, data.lnhr = NULL, time.med, n1.med, n0.med, s1.med, s0.med, data.mct = NULL, ci.level = 0.95, parallel.ncores = 1L, parset = list() )tsroc( time.points, study.os, time.os, n1.os, n0.os, s1.os, s0.os, data.os = NULL, study.lnhr, lnhr, var.lnHR, data.lnhr = NULL, time.med, n1.med, n0.med, s1.med, s0.med, data.mct = NULL, ci.level = 0.95, parallel.ncores = 1L, parset = list() )
time.points |
A numeric vector of the time points at which the time-dependent SROC curve is estimated.
Each value should be included in |
study.os |
Specify the column of the study ID (numeric) in |
time.os |
Specify the column of the time at which the survival probabilities are reported.
The unit of time should be the same as |
n1.os |
Specify the column of the number of subjects in the test-positive group (group 1). |
n0.os |
Specify the column of the number of subjects in the test-negative group (group 0). |
s1.os |
Specify the column of the survival probability at |
s0.os |
Specify the column of the survival probability at |
data.os |
A data frame of the survival data, with one row for each study and each time point.
Within each study, the rows should be sorted in ascending order of time.
If |
study.lnhr |
Specify the column of the study ID (numeric) in |
lnhr |
Specify the column of lnHR (group 1 versus group 0). |
var.lnHR |
Specify the column of the variance of lnHR. |
data.lnhr |
A data frame of lnHR, with one row for each study.
If |
time.med |
Specify the column of the median follow-up time. |
n1.med |
Specify the column of the number of subjects in group 1. |
n0.med |
Specify the column of the number of subjects in group 0. |
s1.med |
Specify the column of the survival probability at |
s0.med |
Specify the column of the survival probability at |
data.mct |
A data frame of the median follow-up time, with one row for each study reporting it.
It is used to estimate the censoring distribution common to all the studies
(see details in |
ci.level |
The confidence level of the confidence intervals, within (0, 1). The default is 0.95. |
parallel.ncores |
The number of cores used for the parallel computation over |
parset |
A list of the settings for the estimation, which updates the default settings. Bad initial values and bounds may cause non-convergence.
|
The time-dependent sensitivity and specificity, and their within-study variances and covariance
are calculated in the same way as tsrocsa.lrt.
study.lnhr, lnhr, and var.lnHR are required as input,
but lnHR is not used in the estimation of this function.
An object of class "srocsa":
a list with one element for each time point (named by time.points).
Each element is the same as the output of sroc.
The results can be shown by print.srocsa, summary.srocsa, and plot.srocsa.
Combescure C, Daures JP, Foucher Y (2016). A literature-based approach to evaluate the predictive capacity of a marker using time-dependent summary receiver operating characteristics. Statistical Methods in Medical Research, 25(2), 674–685. doi:10.1177/0962280212464542
tsrocsa.lrt,
sroc,
print.srocsa,
summary.srocsa,
plot.srocsa
## load data data(Ki67) Ki67_OS <- Ki67$OS Ki67_HR <- Ki67$HR Ki67_MCT <- Ki67$MT ## lnHR and its variance from HR and its 95 percent CI Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$v.lnHR <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit <- tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = v.lnHR, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mct = Ki67_MCT ) fit plot(fit)## load data data(Ki67) Ki67_OS <- Ki67$OS Ki67_HR <- Ki67$HR Ki67_MCT <- Ki67$MT ## lnHR and its variance from HR and its 95 percent CI Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$v.lnHR <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit <- tsroc( time.points = c(24, 36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = v.lnHR, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mct = Ki67_MCT ) fit plot(fit)
This function conducts the likelihood-based sensitivity analysis for publication bias
on the time-dependent SROC curve and SAUC in meta-analysis of prognostic studies.
At each time point, the time-dependent sensitivity and specificity are reconstructed from the published
survival probabilities of the test-positive and test-negative groups (Combescure et al., 2016).
The logit-transformed sensitivity, specificity, and the log hazard ratio (lnHR) are modeled by
the trivariate random-effects model,
combined with a selection function on the -statistic of lnHR.
The model is fitted for each time point in time.points and
each marginal selection probability in senp.p.
tsrocsa.lrt( time.points, study.os, time.os, n1.os, n0.os, s1.os, s0.os, data.os, study.lnhr, lnhr, var.lnHR, data.lnhr, time.med, n1.med, n0.med, s1.med, s0.med, data.mt, senp.p = 1, ci.level = 0.95, parallel.ncores = 1L, parset = list() )tsrocsa.lrt( time.points, study.os, time.os, n1.os, n0.os, s1.os, s0.os, data.os, study.lnhr, lnhr, var.lnHR, data.lnhr, time.med, n1.med, n0.med, s1.med, s0.med, data.mt, senp.p = 1, ci.level = 0.95, parallel.ncores = 1L, parset = list() )
time.points |
A numeric vector of the time points at which the time-dependent SROC curve is estimated.
Each value should be included in |
study.os |
Specify the column of the study ID (numeric) in |
time.os |
Specify the column of the time at which the survival probabilities are reported.
The unit of time should be the same as |
n1.os |
Specify the column of the number of subjects in the test-positive group (group 1). |
n0.os |
Specify the column of the number of subjects in the test-negative group (group 0). |
s1.os |
Specify the column of the survival probability at |
s0.os |
Specify the column of the survival probability at |
data.os |
A data frame of the survival data, with one row for each study and each time point. Within each study, the rows should be sorted in ascending order of time. |
study.lnhr |
Specify the column of the study ID (numeric) in |
lnhr |
Specify the column of lnHR (group 1 versus group 0). |
var.lnHR |
Specify the column of the variance of lnHR. |
data.lnhr |
A data frame of lnHR, with one row for each study. |
time.med |
Specify the column of the median follow-up time. |
n1.med |
Specify the column of the number of subjects in group 1. |
n0.med |
Specify the column of the number of subjects in group 0. |
s1.med |
Specify the column of the survival probability at |
s0.med |
Specify the column of the survival probability at |
data.mt |
A data frame of the median follow-up time, with one row for each study reporting it. It is used to estimate the censoring distribution common to all the studies (see details). |
senp.p |
A numeric vector of the marginal selection probabilities |
ci.level |
The confidence level of the confidence intervals, within (0, 1). The default is 0.95. |
parallel.ncores |
The number of cores used for the parallel computation over |
parset |
A list of the settings for the estimation, which updates the default settings. Bad bounds may cause non-convergence.
|
At time ,
and
,
where and are the survival probabilities of groups 1 and 0,
and and .
Survival probabilities of 1 and 0 are replaced by and .
They are calculated from the survival probabilities up to ,
assuming the censoring distribution common to all the studies.
is estimated within [0, 1] by least squares from data.mt, such that
the pooled survival probability at the median follow-up time multiplied by is close to 0.5.
The probability of publishing study is modeled as
, where is lnHR divided by its standard error.
For given and the other parameters, is determined such that
the mean of the inverse of the marginal selection probabilities of the observed studies equals .
The SROC curve and SAUC are calculated from the parameters of the
logit-transformed sensitivity and specificity. See sauc.
An object of class "srocsa":
a list with one element for each time point (named by time.points),
each of which is a list with one element for each value of senp.p (named by senp.p).
For , each element is the same as the output of reitsma.sroc.
For , each element is the output of nlminb
(par is (mu1, mu2, mu3, tau1, tau2, tau3, rho1, rho2, rho3, beta);
rho1, rho2, and rho3 are the correlations of (1, 2), (2, 3), and (1, 3))
with the additional elements
sauc, beta, alpha, mu1.ci, mu2.ci, mu3.ci,
par.all, sauc.ci, and var.ml
(index 1: logit-sensitivity, 2: logit-specificity, 3: lnHR).
The list at each time point has the attribute "data": a data frame of the study-level
logit-transformed sensitivity (y1) and specificity (y2) and their variances
(v1, v2), used by plot.srocsa (add.study = TRUE).
The results can be shown by print.srocsa, summary.srocsa, and plot.srocsa.
Combescure C, Daures JP, Foucher Y (2016). A literature-based approach to evaluate the predictive capacity of a marker using time-dependent summary receiver operating characteristics. Statistical Methods in Medical Research, 25(2), 674–685. doi:10.1177/0962280212464542
hattori.tsroc,
print.srocsa,
summary.srocsa,
plot.srocsa,
sauc
## load data data(Ki67) head(Ki67$OS) head(Ki67$HR) head(Ki67$MT) ## Define datasets of the HR Ki67_OS <- Ki67$OS Ki67_HR <- Ki67$HR Ki67_MT <- Ki67$MT ## lnHR and its variance from HR and its 95 percent CI Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit <- tsrocsa.lrt( time.points = c(36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67_MT, senp.p = c(1, 0.8) ) fit ## print(fit) summary(fit) ## plots plot(fit, ask = FALSE) # all time points, one per page, no prompt plot(fit, time = 36, add.study = TRUE) # one time point with the studies plot(fit, overlay = TRUE) # all time points in one panel ## interactive: press <Return> to move to the next time point if (interactive()) plot(fit, add.study = TRUE, study.size = "precision") ## Using paralell computing fitp <- tsrocsa.lrt( time.points = c(36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67_MT, senp.p = c(1, 0.8), parallel.ncores = 2L ) print(fitp)## load data data(Ki67) head(Ki67$OS) head(Ki67$HR) head(Ki67$MT) ## Define datasets of the HR Ki67_OS <- Ki67$OS Ki67_HR <- Ki67$HR Ki67_MT <- Ki67$MT ## lnHR and its variance from HR and its 95 percent CI Ki67_HR$lnHR <- log(Ki67_HR$HR) Ki67_HR$lnHR.var <- ((log(Ki67_HR$ci.up) - log(Ki67_HR$ci.low)) / (2 * qnorm(0.975)))^2 fit <- tsrocsa.lrt( time.points = c(36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67_MT, senp.p = c(1, 0.8) ) fit ## print(fit) summary(fit) ## plots plot(fit, ask = FALSE) # all time points, one per page, no prompt plot(fit, time = 36, add.study = TRUE) # one time point with the studies plot(fit, overlay = TRUE) # all time points in one panel ## interactive: press <Return> to move to the next time point if (interactive()) plot(fit, add.study = TRUE, study.size = "precision") ## Using paralell computing fitp <- tsrocsa.lrt( time.points = c(36, 60), study.os = study, time.os = t, n1.os = n1, n0.os = n0, s1.os = s1, s0.os = s0, data.os = Ki67_OS, study.lnhr = study, lnhr = lnHR, var.lnHR = lnHR.var, data.lnhr = Ki67_HR, time.med = mct_mo, n1.med = n1, n0.med = n0, s1.med = s1_mct, s0.med = s0_mct, data.mt = Ki67_MT, senp.p = c(1, 0.8), parallel.ncores = 2L ) print(fitp)