Skip to content

mets

1.3.12Package record

Analysis of Multivariate Event Times

3packages dependsuggested by 6
207.2Kdownloads / year
17.5%test coverage
12/13flavors OK

Overview

About

Implementation of various statistical models for multivariate event history data doi:10.1007/s10985-013-9244-x. Including multivariate cumulative incidence models doi:10.1002/sim.6016, and bivariate random effects probit models (Liability models) doi:10.1016/j.csda.2015.01.014. Modern methods for survival analysis, including regression modelling (Cox, Fine-Gray, Ghosh-Lin, Binomial regression) with fast computation of influence functions.

Changes in 1.3.12
  • brier score for binreg objects brier_binreg

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORexamplesr-devel-linux-x86_64-debian-gcc
Running examples in ‘mets-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: WA_recurrent
> ### Title: While-Alive Estimands for Recurrent Events
> ### Aliases: WA_recurrent
> 
> ### ** Examples
> 
> data(hfactioncpx12)
> dtable(hfactioncpx12,~status)

status
   0    1    2 
 617 1391  124 

> dd <- WA_recurrent(Event(entry,time,status)~treatment+cluster(id),data=hfactioncpx12,
+                    time=2,death.code=2)
Error in a$specials[[i]] : subscript out of bounds
Calls: WA_recurrent -> rmstIPCW -> binreg
Execution halted
ERRORtestsr-devel-linux-x86_64-debian-gcc
Running ‘tinytest.R’ [3s/4s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
  > if (requireNamespace("tinytest", quietly = TRUE)) {
  +   options(Ncpus = 2)
  +   Sys.setenv(OMP_THREAD_LIMIT = 2)
  +   Sys.setenv(OMP_NUM_THREADS = 2)
  +   Sys.setenv(OPENBLAS_NUM_THREADS = 2)
  +   Sys.setenv(ARMA_OPENMP_THREADS = 2)
  +   RcppArmadillo::armadillo_set_number_of_omp_threads(2)
  +   tinytest::test_package("mets")
  + }
  
  test_approx.R.................    0 tests    
  test_approx.R.................    0 tests    
  test_approx.R.................    2 tests OK 0.8s
  
  test_ate_wglm.R...............    0 tests    
  test_ate_wglm.R...............    0 tests    riskRegression version 2026.03.11
  
  test_ate_wglm.R...............    0 tests    
  test_ate_wglm.R...............    0 tests    
  test_ate_wglm.R...............    0 tests    
  test_ate_wglm.R...............    0 tests    
  test_ate_wglm.R...............    0 tests    
  test_ate_wglm.R...............    0 tests    
  test_ate_wglm.R...............    0 tests    Error in a$specials[[i]] : subscript out of bounds
  Calls: <Anonymous> ... lapply -> FUN -> eval -> eval -> test_ate_wglm -> logitIPCW
  Execution halted

CRAN check page ↗

Slowest check: 16.0 min · r-release-macos-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-10-24
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-07-31
  • OK13 OK2026-07-09
  • ERROR11 OK, 2 ERROR2026-07-01
Show 6 earlier changesHide 6 earlier changes
  • OK13 OK2026-06-08
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK13 OK2026-05-02
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.3.12
READMEYes · 1,086 wordsVignettesYes · 22 · staticNEWSYes · 100% structured · mentions 1.3.12Citation fileYes · cites a publicationWebsiteYes · pkgdown
Help pages
165 (3 internal)includes a package overview page
Examples that run
88%94 run in a plain check · 6 only when donttest examples are enabled (R CMD check --as-cran) · 5 never run · 2 hold no code
Exported functions with examples
71%
Documented parameters
99%
Return-value docs
63%
Help pages citing references
20%

Also includes 3 demo scripts (run with demo())

Downloads

207.2K
CRAN downloads in the past year
Rank #956 · ~568/day · ~17.3K/mo
Daily download trend is not available in this view yet.
13.1K30 days
42.8K90 days
207.2K1 year
Compare downloads with other packages →
Also on4K r2u8 autocran9.5K conda_forge382 c2d4u

Repository

17Stars
5Forks
1Open issues
0Open PRs
0Releases
3,555Commits
6Commit identities
multivariate-time-to-eventtime-to-eventsurvival-analysisr
License file reads as Apache-2.0 · 3,555 commits · Last activity 2026-10-15 · +21.4% stars, 30d · Default branch at 1.3.13, ahead of CRAN 1.3.12 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
90%
Median days to close, 50 most recently updated closed issues
32
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-06-21 · 132026-10-23 · 17
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/kkholst/mets on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-08-25 · The repository has a site deploy workflow

pkgdown site last built 2026-08-25

Coverage (1)
Coverage reporting
Reproducibility and dev environment (2)
MakefileDockerfile
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing mets adds 15 packages (7 with compiled code, 8.2 MB of source tarballs). Heaviest: Rcpp 1.8 MB, lava 1.2 MB, RcppArmadillo 1.0 MB.

Depends (1)
R >= 3.5
Enhances (0)
none
Reverse dependencies
3direct
51indirect
Imports 3
Suggested by 6
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer since 0.1-8 (2012)
Author · added in 1.2.8
Releases (41)

Pick two releases to compare their code metrics.

  • 1.3.12Latest
    record
    2026-07-30 · current release · diff ↗
  • 1.3.11
    record
    2026-05-23 · diff ↗ ·
    removed 1 export
    glm_IPTW
    added 3 exports
    binregStrata, binreg_IPTW, brier_binreg
  • 1.3.10
    record
    2026-05-23 · diff ↗ ·
    removed 137 exports
    BinAugmentCifstrata, Bootphreg, CCbinomial.twostage, EVaddGam, Effbinreg, EventSplit2, FG_AugmentCifstrata, IIDrecreg, aalenfrailty, ace.family.design, addCums, ascertained.pairs, back2timereg, basecumhaz, basehazplot.phreg, baseplot, binomial.twostage, binomial.twostage.time, bplotdFG, casewise.bin, casewise.test, cif.yearslost, coarse.clust, coefmat, construct_id, cor.cif, corsim.prostate, corsim.prostate.random, count.history, count.historyVar and 107 more
    added 80 exports
    Grandom_cif, WA_reg, ace_family_design, ascertained_pairs, binomial_twostage, binomial_twostage_time, casewise_bin, cif_yearslost, cluster_index, coarse_clust, cor_cif, corsim_prostate_random, count_history, divide_conquer, event_split, event_split2, familyclusterWithProbands_index, familycluster_index, force_same_cens, gofM_phreg, gofZ_phreg, haplo_surv_discrete, interval_logitsurv_discrete, kendall_ClaytonOakes_twin_ace, kendall_normal_twin_ace, lin_approx, logrankRecurrentBase, make_pairwise_design, or_cif, p11_binomial_twostage_RV and 50 more
  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.9
    record
    2026-01-11 · diff ↗ ·
    removed 11 exports
    FastCoxPLstrataR, cause.pchazard.sim, namesortme, phregR, pre.cifs, rcrisks, read.phreg, sim.base, sim.cause.cox, sim.cifsRestrict, sim.cox
    added 5 exports
    draw.phreg, marks, nameme, phreg_weibull, rweibullcox
  • 1.3.8
    record
    2025-10-21 · diff ↗ ·
    removed 1 export
    rmstRatio
    added 1 export
    rmtlRatio
  • 1.3.7
    record
    2025-08-30 · diff ↗ ·
    removed 9 exports
    IIDbaseline.cifreg, IIDbaseline.phreg, IIDbaseline.recreg, cifregO, cumODDS, resmeanIPCWold, showfitsimIII, simRecurrentIII, strataAugment
    added 11 exports
    binregRatio, construct_id, cumoddsreg, iidBaseline, namesortme, plot_twin, ratioATE, rmstRatio, setup.phreg, showfitsimList, simRecurrentList
  • 1.3.6
    record
    2025-04-23 · diff ↗ ·
    removed 16 exports
    Bootcovariancerecurrence, BootcovariancerecurrenceS, EventSplit, covarianceRecurrent, covarianceRecurrentS, plotstrata, predictRisk.binreg, predictRisk.cifreg, predictRisk.phreg, predictmlogit, prob.exceedBiRecurrent, prob.exceedBiRecurrentStrata, prob.exceedRecurrent, prob.exceedRecurrentStrata, recurrentMarginalIPCW, simCox
    added 18 exports
    EventSplit2, IIDrecreg, Surv, baseplot, cifregFG, cifregO, cluster, conftype, iid, plotO.predictphreg, plotpredictphreg, predictO.phreg, predictRisk, predictrecreg, recurrentMarginalPhreg, strata, summaryRecurrentobject, summarybase.phreg
  • R
    R 4.5.0 released · 2025-04-11
  • 1.3.5
    record
    2025-01-11 · diff ↗ ·
    removed 2 exports
    binregATEbin, recurrentMarginalAIPCWdata
    added 22 exports
    Event, IIDbaseline.recreg, WA_recurrent, evalTerminal, event.split, gofFG, kmplot, plotConfregion, predictRisk.binreg, predictRisk.cifreg, predictRisk.phreg, rchazl, read.phreg, resmeanIPCWold, showfitsimIII, sim.phreg, sim.phregs, sim.recurrent, simCens, simGLcox, simRecurrentIII, survivalGtime
  • R
    R 4.4.0 released · 2024-04-24
  • 1.3.4
    record
    2024-02-16 · diff ↗ ·
    removed 2 exports
    phreg_lt, waldTest
    added 2 exports
    glm_IPTW, phreg_rct
  • 1.3.3
    record
    2023-12-05 · diff ↗ ·
    removed 3 exports
    easy.survival.twostage, simRecurrentGamma, survival.twostageCC
    added 11 exports
    binregG, binregTSR, cumODDS, phreg_IPTW, phreg_lt, predictGLM, rchazC, rcrisks, summaryGLM, twostageREC, waldTest
  • R
    R 4.3.0 released · 2023-04-21
  • 1.3.2
    record
    2023-01-17 · diff ↗ ·
    added 29 exports
    IC, IIDbaseline.cifreg, IIDbaseline.phreg, cause.pchazard.sim, cpred, estimate, gof, invsubdist, lin.approx, pre.cifs, predictCumhaz, rchaz, rcrisk, recregIPCW, resmeanATE, rmst.phreg, rmstATE, rmstIPCW, sim.base, sim.cause.cox, sim.cif, sim.cifs, sim.cifsRestrict, sim.cox, simrchaz, simsubdist, subdist, survivalG, twostage
  • 1.3.1
    record
    2022-10-02 · diff ↗
Show 42 earlier eventsHide 42 earlier events
  • 1.3.0
    record
    2022-09-05 · diff ↗ ·
    removed 2 exports
    EventCens, recurrentMarginalgam
    added 18 exports
    BootmediatorSurv, Effbinreg, EventSplit, GLprediid, aalenMets, binregATEbin, binregt, cif.yearslost, kumarsimRCT, mediatorSurv, medweight, normalATE, predictmlogit, recurrentMarginalAIPCWdata, resmean.phreg, resmeanIPCW, scalecumhaz, strataAugment
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.9
    record
    2021-09-06 · diff ↗ ·
    added 13 exports
    EventCens, bicompriskData, binregATE, binregCasewise, indexstratarightR, kumarsim, logitATE, logitIPCW, logitIPCWATE, readmargsurv, recreg, recurrentMarginalAIPCW, survival.twostageCC
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2020-09-29
  • 1.2.8.1
    record
    2020-09-29 · diff ↗ ·
    added 1 export
    summaryTimeobject
  • archivedRemoved from CRAN
    2020-09-12
    check problems were not corrected in time
  • 1.2.8
    record
    2020-08-27 · diff ↗ ·
    removed 4 exports
    make.pairwise.design.competing, readmargsurv, survival.iterative, survival.twostage.fullse
    added 22 exports
    BinAugmentCifstrata, FG_AugmentCifstrata, FGprediid, bplotdFG, count.historyVar, cumsum2strata, diffstrata, doubleFGR, drop.specials, drop.strata, headstrata, indexstrata, mystrata2index, plotConfRegionSE, plotstrata, predictdFG, revcumsum2strata, revcumsum2stratafdN, setup.cif, simul.cifs, strataC, vecAllStrata
  • R
    R 4.0.0 released · 2020-04-24
  • 1.2.7.1
    record
    2020-03-04 · diff ↗ ·
    added 1 export
    readmargsurv
  • 1.2.7
    record
    2020-02-19 · diff ↗ ·
    removed 1 export
    simGlm
    added 15 exports
    FastCoxPLstrataR, Interval, binreg, countID, dInterval, interval.logitsurv.discrete, mystrata, pairRisk, phregR, predictlogitSurvd, prob.exceedBiRecurrentStrata, prob.exceedRecurrentStrata, recurrentMarginalIPCW, simTTP, simlogitSurvd
  • 1.2.6
    record
    2019-08-05 · diff ↗ ·
    removed 1 export
    simRecurrentIII
    added 16 exports
    Bootphreg, cifreg, dsort2, extendCums, haplo.surv.discrete, mlogit, plotConfRegion, plotSurvd, pred.cif.boot, predictSurvd, rpch, simClaytonOakesLam, simGlm, simMultistate, simRecurrentTS, tailstrata
  • R
    R 3.6.0 released · 2019-04-26
  • 1.2.5
    record
    2018-11-20 · diff ↗ ·
    removed 3 exports
    concordance, concordance.twin.ace, concordance.twostage
    added 10 exports
    addCums, concordanceCor, concordanceTwinACE, concordanceTwostage, logitSurv, mdi, randomDes, readPhreg, simRecurrentIII, twostageMLE
  • 1.2.4
    record
    2018-08-13 · diff ↗ ·
    added 18 exports
    dspline<-, dtrans<-, dtransform<-, LinSpline, cif, covIntH1dM1IntH2dM2, cumContr, dmvn, dspline, gofZ.phreg, km, prob.exceedBiRecurrent, prob.exceedRecurrent, recurrentMarginalgam, revcumsum, rmvn, squareintHdM, survival.iterative
  • 1.2.3.1
    record
    2018-04-30 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.2.3
    record
    2018-02-09 · diff ↗ ·
    added 36 exports
    Bootcovariancerecurrence, BootcovariancerecurrenceS, basecumhaz, basehazplot.phreg, bplot, count.history, covarianceRecurrent, covarianceRecurrentS, covfr, covfridstrata, covfridstrataCov, cumsumidstratasum, cumsumidstratasumCov, cumsumstrata, cumsumstratasum, dreg, gofG.phreg, gofM.phreg, matdoubleindex, prob.exceed.recurrent, procformdata, recmarg, recurrentMarginal, revcumsumidstratasum, revcumsumidstratasumCov, revcumsumstrata, revcumsumstratasum, robust.basehaz.phreg, robust.phreg, showfitsim and 6 more
  • R
    R 3.4.0 released · 2017-04-21
  • 1.2.2
    record
    2017-03-30 · diff ↗ ·
    removed 1 export
    printcasewisetest
  • 1.2.1
    record
    2017-02-27 · diff ↗ ·
    added 13 exports
    drelev<-, daggr, dbyr, dlev, dlevel, dmeansd, drelev, dsample, dtab, dtrans, dtransform, procform, procform3
  • 1.2
    record
    2017-02-04 · diff ↗ ·
    removed 2 exports
    easy.twostage, twostage
    added 80 exports
    dby2<-, dby<-, dcut<-, ddrop<-, dfactor<-, dkeep<-, dlag<-, dnames<-, dnumeric<-, drelevel<-, drename<-, drm<-, dsort<-, CCbinomial.twostage, EVaddGam, ace.family.design, ascertained.pairs, coarse.clust, concordance.twin.ace, concordance.twostage, daggregate, dby, dby2, dcor, dcount, dcut, ddrop, deval, deval2, dfactor and 50 more
  • R
    R 3.3.0 released · 2016-05-03
  • 1.1.1
    record
    2015-05-29 · diff ↗ ·
    removed 1 export
    survpois
    added 5 exports
    corsim.prostate.random, eventpois, ipw, ipw2, simnordic.random
  • R
    R 3.2.0 released · 2015-04-16
  • 1.1.0
    record
    2015-02-16 · diff ↗ ·
    removed 2 exports
    Event, rbind.Event
    added 2 exports
    scoreMVN, survpois
  • 1.0
    record
    2014-11-18 · diff ↗ ·
    removed 1 export
    ipw
    added 15 exports
    Event, binomial.twostage.time, biprobit.time, biprobit.vector, bptwin.time, casewise.bin, divide.conquer, divide.conquer.timereg, folds, jumptimes, or2prob, rbind.Event, slope.process, tetrachoric, twin.clustertrunc
  • 0.2.8
    record
    2014-05-13 · diff ↗ ·
    removed 1 export
    cumh
    added 5 exports
    blocksample, grouptable, phreg.par, twinlm.strata, twinlm.time
  • R
    R 3.1.0 released · 2014-04-10
  • 0.2.7
    record
    2014-02-20 · diff ↗ ·
    added 3 exports
    loglikMVN, pbvn, pmvn
  • 0.2.6
    record
    2013-12-17 · diff ↗ ·
    added 1 export
    simBinFam2
  • 0.2.5
    record
    2013-12-16 · diff ↗ ·
    added 3 exports
    lifetable, simAalenFrailty, simClaytonOakesWei
  • 0.2.4
    record
    2013-07-13 · diff ↗ ·
    added 1 export
    simCox
  • 0.2.3
    record
    2013-05-22 · diff ↗
  • 0.2.2
    record
    2013-05-21 · diff ↗ ·
    added 5 exports
    easy.twostage, phreg, simBinFam, simBinPlack, simSurvFam
  • 0.2.1
    record
    2013-04-24 · diff ↗ ·
    added 6 exports
    binomial.twostage, cluster.index, easy.binomial.twostage, familycluster.index, faster.reshape, piecewise.data
  • R
    R 3.0.0 released · 2013-04-03
  • 0.1-13
    record
    2013-01-21 · diff ↗ ·
    removed 1 export
    fastapprox
    added 3 exports
    fast.approx, fast.pattern, fast.reshape
  • 0.1-12
    record
    2012-11-20 · diff ↗ ·
    removed 1 export
    conc2probandwise
    added 10 exports
    aalenfrailty, alpha2kendall, alpha2spear, casewise, casewise.test, coefmat, piecewise.twostage, printcasewisetest, surv.boxarea, twostage
  • 0.1-11
    record
    2012-07-06 · diff ↗ ·
    removed 1 export
    conc2case
    added 4 exports
    Grandom.cif, conc2probandwise, corsim.prostate, plack.cif2
  • 0.1-8
    record
    2012-05-14
  • R
    R 2.15.0 released · 2012-03-30

Package metadata

First published
2012-05-14
Total releases
41 / 14 yrs
License
Apache License (== 2.0) · relicensed from GPL (>= 2) in 1.3.9
Minimum R
≥ 3.5
Bundled data
904 KB / 21 files
Download size
4.4 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("mets")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for mets version 1.3.12 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy