R Under development (unstable) (2026-01-07 r89288 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > if (requireNamespace("tinytest", quietly = TRUE)) { + options(Ncpus = 2) + tinytest::test_package("mets") + } test_approx.R................. 0 tests test_approx.R................. 0 tests test_approx.R................. 2 tests OK 1.1s test_ate_wglm.R............... 0 tests test_ate_wglm.R............... 0 tests riskRegression version 2025.09.17 Attaching package: 'riskRegression' The following object is masked from 'package:mets': predictRisk 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 IPCW logistic regression for cause 1 - structure: Surv(time, cause) with possible states: 0, 1, 2. - censoring model: ~+1 (fitter: prodlim function). - outcome model: ~tcell.f + platelet + age (fitter: glm function). - estimated regression parameters: ------ time: 50 ---------------------------------------------- - number (events, no event, censoring): 160, 156, 92 - IPCW (min,median,max): 1, 1.03466, 2.07505 Estimate Std. Error z value Pr(>|z|) (Intercept) -0.2563828 0.1359586 -1.8857417 0.059329775 tcell.f1 -0.5351145 0.3779879 -1.4156922 0.156865656 platelet -0.2034444 0.2680338 -0.7590251 0.447837519 age 0.4276224 0.1157766 3.6935132 0.000221177 IPCW logistic regression for cause 1 - structure: Surv(time, cause) with possible states: 0, 1, 2. - censoring model: ~strata(tcell, platelet) (fitter: coxph function). - outcome model: ~tcell.f + platelet + age (fitter: glm function). - estimated regression parameters: ------ time: 50 ---------------------------------------------- - number (events, no event, censoring): 160, 156, 92 - IPCW (min,median,max): 1, 1.02799, 4.97835 Estimate Std. Error z value Pr(>|z|) (Intercept) -0.1932183 0.1319584 -1.464236 0.1431294246 tcell.f1 -0.5703582 0.3670655 -1.553832 0.1202244314 platelet -0.3539607 0.2465575 -1.435611 0.1511131106 age 0.4086377 0.1157332 3.530860 0.0004142116 Average treatment effect for cause 1 - Treatment : tcell.f (2 levels: "0" "1") - Event : cause (cause: 1, competing risk(s): 0 2, censoring: 0) - Time [min;max] : time [0.0301;111] - at risk/time : 50 number in treatment 0 64 number in treatment 1 7 Estimation procedure - Estimators : G-formula, Partially augmented estimator, Inverse probability of treatment weighting - Uncertainty: Gaussian approximation where the variance is estimated via the influence function Testing procedure - Null hypothesis : given two treatments (A,B) and a specific timepoint, equal risks - Confidence level : 0.95 Results: - Difference in standardized risk (B-A) between time zero and 'time' reported on the scale [-1;1] (difference between two probabilities) (difference in average risks when treating all subjects with the experimental treatment (B), vs. treating all subjects with the reference treatment (A)) time tcell.f=A risk(tcell.f=A) tcell.f=B risk(tcell.f=B) difference 50 0 0.429 1 0.303 -0.126 ci p.value [-0.27;0.02] 0.0957 difference : estimated difference in standardized risks ci : pointwise confidence intervals p.value : (unadjusted) p-value test_ate_wglm.R............... 3 tests OK 5.9s test_binreg.R................. 0 tests test_binreg.R................. 0 tests test_binreg.R................. 1 tests OK test_binreg.R................. 1 tests OK test_binreg.R................. 2 tests OK 0.6s test_cifreg.R................. 0 tests test_cifreg.R................. 0 tests Loading required package: survival test_cifreg.R................. 1 tests OK 0.1s test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 0 tests test_cluster-II.R............. 15 tests OK test_cluster-II.R............. 15 tests OK test_cluster-II.R............. 39 tests OK test_cluster-II.R............. 39 tests OK test_cluster-II.R............. 52 tests OK test_cluster-II.R............. 52 tests OK test_cluster-II.R............. 53 tests OK test_cluster-II.R............. 53 tests OK test_cluster-II.R............. 58 tests OK test_cluster-II.R............. 58 tests OK [1] 0 0 [1] 0 0 test_cluster-II.R............. 60 tests OK test_cluster-II.R............. 60 tests OK test_cluster-II.R............. 63 tests OK test_cluster-II.R............. 63 tests OK test_cluster-II.R............. 73 tests OK test_cluster-II.R............. 73 tests OK test_cluster-II.R............. 83 tests OK 39.4s test_cluster.R................ 0 tests test_cluster.R................ 0 tests test_cluster.R................ 1 tests OK 1.9s test_dutils.R................. 0 tests test_dutils.R................. 0 tests test_dutils.R................. 1 tests OK test_dutils.R................. 1 tests OK test_dutils.R................. 2 tests OK test_dutils.R................. 2 tests OK test_dutils.R................. 6 tests OK test_dutils.R................. 6 tests OK test_dutils.R................. 10 tests OK test_dutils.R................. 10 tests OK test_dutils.R................. 17 tests OK 56ms test_event.R.................. 0 tests test_event.R.................. 0 tests test_event.R.................. 3 tests OK 5ms test_iid.R.................... 0 tests test_iid.R.................... 0 tests test_iid.R.................... 1 tests OK test_iid.R.................... 1 tests OK test_iid.R.................... 1 tests OK test_iid.R.................... 2 tests OK 0.4s test_mvn.R.................... 0 tests test_mvn.R.................... 0 tests test_mvn.R.................... 0 tests test_mvn.R.................... 0 tests test_mvn.R.................... 0 tests test_mvn.R.................... 1 tests OK test_mvn.R.................... 1 tests OK 2.4s test_recreg.R................. 0 tests test_recreg.R................. 0 tests test_recreg.R................. 1 tests OK test_recreg.R................. 1 tests OK test_recreg.R................. 2 tests OK 0.7s test_reshape.R................ 0 tests test_reshape.R................ 0 tests test_reshape.R................ 2 tests OK test_reshape.R................ 2 tests OK test_reshape.R................ 3 tests OK test_reshape.R................ 3 tests OK test_reshape.R................ 5 tests OK 70ms test_rmst.R................... 0 tests test_rmst.R................... 1 tests OK test_rmst.R................... 1 tests OK test_rmst.R................... 2 tests OK 0.6s test_weibull.R................ 0 tests test_weibull.R................ 0 tests test_weibull.R................ 0 tests test_weibull.R................ 0 tests test_weibull.R................ 0 tests test_weibull.R................ 0 tests test_weibull.R................ 0 tests test_weibull.R................ 1 tests OK test_weibull.R................ 1 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 2 tests OK test_weibull.R................ 3 tests OK test_weibull.R................ 3 tests OK test_weibull.R................ 3 tests OK test_weibull.R................ 3 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 4 tests OK test_weibull.R................ 5 tests OK test_weibull.R................ 5 tests OK test_weibull.R................ 5 tests OK test_weibull.R................ 6 tests OK test_weibull.R................ 6 tests OK test_weibull.R................ 6 tests OK test_weibull.R................ 7 tests OK 1.7s All ok, 131 results (55.0s) > > proc.time() user system elapsed 55.17 2.75 57.00