Package: dtametaTMB 0.1.3.9000

Claus Nowak

dtametaTMB: Diagnostic Test Accuracy Meta-Analysis using Template Model Builder

Fits the hierarchical summary receiver operating characteristic (HSROC) model of Rutter and Gatsonis (2001) <doi:10.1002/sim.942>, the bivariate binomial-normal model of Reitsma et al. (2005) <doi:10.1016/j.jclinepi.2005.02.022>, the threshold-based bivariate time-to-event model of Hoyer et al. (2018) <doi:10.1002/jrsm.1273>, and the latent class extensions of Liu et al. (2015) <doi:10.1111/biom.12264> for diagnostic studies with an imperfect reference standard. Provides subgroup analyses, HSROC meta-regression, likelihood-ratio tests, summary ROC plots, and coupled forest plots.

Authors:Claus Nowak [aut, cre]

dtametaTMB_0.1.3.9000.tar.gz
dtametaTMB_0.1.3.9000.zip(r-4.7-x86_64)dtametaTMB_0.1.3.9000.zip(r-4.7-arm64)dtametaTMB_0.1.3.9000.zip(r-4.6-x86_64)dtametaTMB_0.1.3.9000.zip(r-4.6-arm64)dtametaTMB_0.1.3.9000.zip(r-4.5-x86_64)
dtametaTMB_0.1.3.9000.tgz(r-4.6-x86_64)dtametaTMB_0.1.3.9000.tgz(r-4.6-arm64)dtametaTMB_0.1.3.9000.tgz(r-4.5-x86_64)dtametaTMB_0.1.3.9000.tgz(r-4.5-arm64)
dtametaTMB_0.1.3.9000.tar.gz(r-4.7-arm64)dtametaTMB_0.1.3.9000.tar.gz(r-4.7-x86_64)dtametaTMB_0.1.3.9000.tar.gz(r-4.6-arm64)dtametaTMB_0.1.3.9000.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dtametaTMB/json (API)

# Install 'dtametaTMB' in R:
install.packages('dtametaTMB', repos = c('https://ebme-uwk.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ebme-uwk/dtametatmb/issues

Datasets:

On CRAN:

Conda:

quarto

5.41 score 5 scripts 952 downloads 17 exports 67 dependencies

Last updated from:4534cbe118. Checks:13 WARNING, 1 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64WARNING287
linux-devel-x86_64WARNING346
source / vignettesOK444
linux-release-arm64WARNING268
linux-release-x86_64WARNING327
macos-release-arm64WARNING280
macos-release-x86_64WARNING794
macos-oldrel-arm64WARNING354
macos-oldrel-x86_64WARNING731
windows-devel-arm64WARNING495
windows-devel-x86_64WARNING446
windows-release-arm64WARNING612
windows-release-x86_64WARNING368
windows-oldrel-x86_64WARNING283
wasm-releaseFAIL120

Exports:as_revmanfitHoyerfitHoyerAFTfitReitsmafitReitsmaLCAfitReitsmaSubgroupfitReitsmaSubgroupLCAfitReitsmaSubgroupTMBfitReitsmaTMBfitRutterGatsonisfitRutterGatsonisLCAfitRutterGatsonisRegfitRutterGatsonisSubgroupfitRutterGatsonisSubgroupLCAforestinitHoyerAFTrestructure_data

Dependencies:backportsbootbroomclicolorspacecowplotcpp11DerivdoBydplyrfarverforecastforestploterfracdiffgenericsggplot2glmmTMBgluegridExtragtableisobandlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixmgcvminqamodelrnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangRTMBS7sandwichscalesstringistringrsurvivaltibbletidyrtidyselecttimeDateTMBurcautf8vctrsviridisLitewithrzoo

RevMan-Style Study Markers in SROC Plots
Overview | Notation | Analysis-specific normalization | $$c =\frac | RevMan-style sample-size scaling | RevMan-style inverse-standard-error scaling | Package-specific graphical rescaling | Symbol geometry and equal-area scaling | A controlled example | $$\sqrt | Using the sizing methods | Relation to the other sizing methods | $$w_ | $$w_ | $$q_ | $$q_ | Latent-class extension | Total sample-size scaling | Empirical Bayes precision scaling | $$\widetilde d_ | $$\widetilde d_ | Interpretation and limitations | Summary | \frac

Last update: 2026-10-15
Started: 2026-10-03

Introduction to dtametaTMB
How do I load the package? | Which model should I use? | Validation | How do I use the Reitsma model? | $$\begin | How do I get a summary plot of the Reitsma model? | How do I get a coupled forest plot? | How do I export results to RevMan? | How do I fit the Reitsma model using the custom TMB backend? | An example illustrating numerical behaviour near the boundary | How do I use the Rutter and Gatsonis model? | How do I get a summary plot of the Rutter and Gatsonis model? | How do I simplify the models via parameter constraints? | How do I use the Hoyer model? | Which distributions does dtametaTMB support? | Weibull distribution | Log-normal distribution | Log-logistic distribution | Random effects structure | Censoring mechanism | How do I compute sensitivities and specificities? | How do I interpret test direction? | In a nutshell | How do I fit the Hoyer model? | How do I get a summary plot of the Hoyer model? | How do I fit the Hoyer model to the FeNO dataset? | How does testdirection="less" work? | How does fitHoyer work internally? -- Optional advanced workflow | Step 1: How do we restructure the data set? | Step 2: How do we get initial values? | Step 3: How do we fit the model? | References

Last update: 2026-10-11
Started: 2026-07-01

Latent Class Meta-Analysis
What are latent class models? | Which latent class models does dtametaTMB support? | What is conditional independence? | How do latent class models work? | How do we model disease prevalence? | $$\text{logit}(\pi_i) | How do we model the index test? (Reitsma version) | $$\text{logit}(Se_{i}) | $$\text{logit}(Sp_{i}) | How do we model the index test? (Rutter and Gatsonis version) | $$x_ | $$\eta_ | \left(\Theta+\theta_i | How do we model the reference test? | $$Se_R | $$Sp_R | How do we model the latent-class probabilities? | $$p_ | $$p_ | $$p_ | $$p_ | Model parameters (Reitsma version) | Model parameters (Rutter and Gatsonis version) | How does the model provide study-specific sensitivities/specificities? | How do we obtain starting values? | How do I fit the Reitsma latent class model? | How do I get a summary plot? | How do I get a coupled forest plot? | How do I fit the Rutter and Gatsonis latent class model? | How do I perform subgroup analyses? | Reitsma subgroup latent class model | Rutter and Gatsonis subgroup latent class model | How do I fit the Reitsma subgroup latent class model? | How do I apply these methods to the schuetz data set? | References

Last update: 2026-10-11
Started: 2026-07-15

Meta-Regression
Validation | Dummy-coding vs. cell-means parameterization | How do we include covariates in the Reitsma model? | How do I get a summary plot of the Reitsma model? | How do I get a coupled forest plot? | How do I constrain parameters in the Reitsma model? | How can I compare constrainsens with the full model? | How do I allow for different subgroup-specific random-effects (co-)variances in the Reitsma model? | How do I fit the Reitsma subgroup model using the custom TMB backend? | How do we include covariates in the Rutter and Gatsonis model? | How do I perform a Rutter and Gatsonis meta-regression with a single categorical study-level covariate? | How do I get a summary plot of the Rutter and Gatsonis subgroup model? | How do I constrain parameters in the Rutter and Gatsonis subgroup model? | How do I use the general Rutter and Gatsonis regression function? | How do I compare models? | How do I get the log likelihood, the AIC, and the BIC of a model? | How do I perform a likelihood ratio test of the two models? | How do I replicate results from the Cochrane Handbook with respect to the schuetz data set? | What are the results for the full data set? | What are the results for the direct comparisons? | References

Last update: 2026-10-06
Started: 2026-07-03

Readme and manuals

Help Manual

Help pageTopics
Anaemia Synthetic Datasetanaemia
Likelihood Ratio Tests for Diagnostic Test Accuracy Modelsanova.dtametaTMB anova.Reitsma anova.RutterGatsonis
Anticcp Datasetanticcp
Export Model Results for RevManas_revman as_revman.dtametaTMB as_revman.Reitsma as_revman.ReitsmaLCA as_revman.ReitsmaSubgroup as_revman.ReitsmaSubgroupLCA as_revman.ReitsmaSubgroupTMB as_revman.ReitsmaTMB as_revman.RutterGatsonis as_revman.RutterGatsonisLCA as_revman.RutterGatsonisSubgroup as_revman.RutterGatsonisSubgroupLCA
Extract Model Coefficientscoef.dtametaTMB coef.DTAmodel coef.Reitsma coef.ReitsmaLCA coef.ReitsmaSubgroup coef.ReitsmaSubgroupLCA coef.ReitsmaSubgroupTMB coef.ReitsmaTMB
Dementia Datasetdementia
Diabetes Datasetdiabetes
dtametaTMB: Diagnostic Test Accuracy Meta-Analysis using Template Model BuilderdtametaTMB-package dtametaTMB
FENO DatasetFENO
Fit Threshold-Based Bivariate Time-to-Event Model (Hoyer)fitHoyer
Fit Threshold-Based Bivariate Time-to-Event Model (HoyerAFT)fitHoyerAFT
Fit the Reitsma ModelfitReitsma
Fit the Reitsma LCA ModelfitReitsmaLCA
Fit the Reitsma Subgroup ModelfitReitsmaSubgroup
Fit the Reitsma Subgroup LCA ModelfitReitsmaSubgroupLCA
Fit the Reitsma Subgroup TMB ModelfitReitsmaSubgroupTMB
Fit the Reitsma TMB ModelfitReitsmaTMB
Fit the Rutter and Gatsonis (HSROC) ModelfitRutterGatsonis
Fit the Rutter and Gatsonis LCA ModelfitRutterGatsonisLCA
Fit the Rutter and Gatsonis Regression ModelfitRutterGatsonisReg
Fit the Rutter and Gatsonis Subgroup ModelfitRutterGatsonisSubgroup
Fit the Rutter and Gatsonis Subgroup LCA ModelfitRutterGatsonisSubgroupLCA
Coupled Forest Plotforest
Coupled Forest Plot for Diagnostic Test Accuracy Meta-Analysisforest.HoyerAFT
Coupled Forest Plot for Diagnostic Test Accuracy Meta-Analysisforest.Reitsma
Coupled Forest Plot for Latent Class Diagnostic Test Accuracy Meta-Analysisforest.ReitsmaLCA
Coupled Forest Plot for Diagnostic Test Accuracy Meta-Analysisforest.ReitsmaSubgroup
Coupled Forest Plot for Latent Class Diagnostic Test Accuracy Meta-Analysisforest.ReitsmaSubgroupLCA
Coupled Forest Plot for Diagnostic Test Accuracy Meta-Analysisforest.ReitsmaSubgroupTMB
Coupled Forest Plot for Diagnostic Test Accuracy Meta-Analysisforest.RutterGatsonis
Coupled Forest Plot for Latent Class Diagnostic Test Accuracy Meta-Analysisforest.RutterGatsonisLCA
Coupled Forest Plot for Diagnostic Test Accuracy Meta-Analysisforest.RutterGatsonisSubgroup
Coupled Forest Plot for Latent Class Diagnostic Test Accuracy Meta-Analysisforest.RutterGatsonisSubgroupLCA
Compute Initial Parameter Values for HoyerAFT ModelsinitHoyerAFT
Extract Log-Likelihood from Diagnostic Test Accuracy ModelslogLik.dtametaTMB logLik.DTAmodel logLik.HoyerAFT logLik.Reitsma logLik.ReitsmaLCA logLik.ReitsmaSubgroup logLik.ReitsmaSubgroupLCA logLik.ReitsmaSubgroupTMB logLik.ReitsmaTMB
Pap Datasetpap
Plot Results from a HoyerAFT Modelplot.HoyerAFT
Plot Results from a Reitsma Modelplot.Reitsma
Plot Results from a Reitsma LCA Modelplot.ReitsmaLCA
Plot Results from a Reitsma Subgroup Modelplot.ReitsmaSubgroup
Plot Results from a Reitsma Subgroup LCA Modelplot.ReitsmaSubgroupLCA
Plot Results from a Reitsma Subgroup TMB Modelplot.ReitsmaSubgroupTMB
Plot Results from a ReitsmaTMB Modelplot.ReitsmaTMB
Plot Results from a Rutter and Gatsonis Modelplot.RutterGatsonis
Plot Results from a Rutter and Gatsonis LCA Modelplot.RutterGatsonisLCA
Plot Results from a Rutter and Gatsonis Subgroup Modelplot.RutterGatsonisSubgroup
Plot Results from a Rutter and Gatsonis Subgroup LCA Modelplot.RutterGatsonisSubgroupLCA
Print Method for HoyerAFT Objectsprint.HoyerAFT
Print Method for Reitsma Objectsprint.Reitsma
Print Method for ReitsmaLCA Objectsprint.ReitsmaLCA
Print Method for ReitsmaSubgroup Objectsprint.ReitsmaSubgroup
Print Method for ReitsmaSubgroupLCA Objectsprint.ReitsmaSubgroupLCA
Print Method for ReitsmaSubgroupTMB Objectsprint.ReitsmaSubgroupTMB
Print Method for ReitsmaTMB Objectsprint.ReitsmaTMB
Print Method for RutterGatsonis Objectsprint.RutterGatsonis
Print Method for RutterGatsonisLCA Objectsprint.RutterGatsonisLCA
Print Method for RutterGatsonisReg Objectsprint.RutterGatsonisReg
Print Method for RutterGatsonisSubgroup Objectsprint.RutterGatsonisSubgroup
Print Method for RutterGatsonisSubgroupLCA Objectsprint.RutterGatsonisSubgroupLCA
Print a Diagnostic Test Accuracy Model Summaryprint.summary.DTAmodel print.summary.HoyerAFT print.summary.Reitsma print.summary.ReitsmaLCA print.summary.ReitsmaSubgroup print.summary.ReitsmaSubgroupLCA print.summary.ReitsmaSubgroupTMB print.summary.ReitsmaTMB print.summary.RutterGatsonis print.summary.RutterGatsonisLCA print.summary.RutterGatsonisReg print.summary.RutterGatsonisSubgroup print.summary.RutterGatsonisSubgroupLCA
Construct Interval Data for Threshold-Based Bivariate Time-to-Event Modelsrestructure_data
RF DatasetRF
Schuetz Datasetschuetz
Summary Method for HoyerAFT Objectssummary.HoyerAFT
Summary Method for Reitsma Objectssummary.Reitsma
Summary Method for ReitsmaLCA Objectssummary.ReitsmaLCA
Summary Method for ReitsmaSubgroup Objectssummary.ReitsmaSubgroup
Summary Method for ReitsmaSubgroupLCA Objectssummary.ReitsmaSubgroupLCA
Summary Method for ReitsmaSubgroupTMB Objectssummary.ReitsmaSubgroupTMB
Summary Method for ReitsmaTMB Objectssummary.ReitsmaTMB
Summary Method for RutterGatsonis Objectssummary.RutterGatsonis
Summary Method for RutterGatsonisLCA Objectssummary.RutterGatsonisLCA
Summary Method for RutterGatsonisReg Objectssummary.RutterGatsonisReg
Summary Method for RutterGatsonisSubgroup Objectssummary.RutterGatsonisSubgroup
Summary Method for RutterGatsonisSubgroupLCA Objectssummary.RutterGatsonisSubgroupLCA
Tub Datasettub
Extract Variance-Covariance Matrixvcov.dtametaTMB vcov.DTAmodel vcov.Reitsma vcov.ReitsmaLCA vcov.ReitsmaSubgroup vcov.ReitsmaSubgroupLCA