Changelog
Source:NEWS.md
RobinCar2 0.2.1.9000
New features
The user interface for
robin_survhas been improved for specifying analysis stratification variables directly as part of the model formula, similar to how it is done insurvival::coxph. In addition, the randomization scheme is now specified as for the otherRobinCar2functions for consistency. See the updated vignette for details.It is now possible to only perform the log rank test, without estimating the log hazard ratio, in
robin_survby setting the argumentcontrast = "none". This can be useful e.g. when performing simulation studies focusing only on the log-rank test operating characteristics, because the log-rank test is computationally less expensive than estimating the hazard ratio.
Bug Fixes
Fixed a bug in covariate-adjusted stratified survival function estimation in
robin_survwhich could occur when there are character covariates with values only appearing in one stratum, which could have failed or lead to incorrect results.Fixed another bug in covariate-adjusted stratified survival function estimation in
robin_surv, which resulted from design matrices separately derived per stratum. Now the design matrix is created once including the stratum indicator, and then the stratum-specific parts are extracted as needed.
RobinCar2 0.2.1
CRAN release: 2025-09-11
New features
- Now multiple stratification variables are supported in
robin_survby adding them on the right-hand side of thetreatmentformula.
Bug Fixes
- There will be no more spurious warnings in
robin_survduring the hazard ratio estimation coming from the variance calculation: Now the variance is only calculated after the hazard ratio estimate is obtained. - When adjusting for a single factor covariate, or when the covariate is strongly correlated with a strata variable in
robin_surv, the function now works correctly and does not fail with a “singular design matrix” error any longer. - Fixed a bug in covariate-adjusted survival function estimation in
robin_survwhich could occur when there are character covariates with values only appearing in one treatment group, which could have led to incorrect results.
RobinCar2 0.2.0
CRAN release: 2025-09-09
New features
- Add survival analysis with log-rank test and hazard ratio estimation.
- Add
log_odds_ratioandlog_risk_ratiofunction for inference. - Add
contrast_mattotreatment_effectobject. - Add
confintto obtain confidence interval forprediction_cfandtreatment_effectobject.