Skip to content

Commit 69e1ea1

Browse files
author
Brice Maxime Hugues Ozenne
committed
2 parents ee71040 + 109b71f commit 69e1ea1

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: riskRegression
22
Type: Package
33
Title: Risk Regression Models and Prediction Scores for Survival Analysis with
44
Competing Risks
5-
Version: 2026.04.22
5+
Version: 2026.05.19
66
Authors@R: c(person("Thomas Alexander", "Gerds", role = c("aut", "cre"), email = "[email protected]"),
77
person("Johan Sebastian", "Ohlendorff", role = "aut"),
88
person("Paul", "Blanche", role = "ctb"),

R/ate.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## author: Thomas Alexander Gerds
44
## created: Oct 23 2016 (08:53)
55
## Version:
6-
## last-updated: Apr 23 2026 (19:28)
6+
## last-updated: maj 21 2026 (14:52)
77
## By: Brice Ozenne
8-
## Update #: 2651
8+
## Update #: 2653
99
#----------------------------------------------------------------------
1010
##
1111
### Commentary:
@@ -33,7 +33,7 @@
3333
#' @param data.index [numeric vector] Position of the observation in argument data relative to the dataset used to obtain the argument event, treatment, censor.
3434
#' Only necessary for the standard errors when computing the Average Treatment Effects on a subset of the data set.
3535
#' @param contrasts [character vector] levels of the treatment variable for which the risks should be assessed and compared. Default is to consider all levels.
36-
#' @param allContrasts [2-row character matrix] levels of the treatment variable to be compared. Default is to consider all pairwise comparisons.
36+
#' @param allContrasts [2-row character matrix] where each column contains the levels of the treatment variable to be compared. Default is to consider all pairwise comparisons.
3737
#' @param strata [character] Strata variable on which to compute the average risk.
3838
#' To be used instead of the treatment argument when the interest lies in the average outcome within group
3939
#' instead of the average counterfactual outcome had all subjects experience the exposure of a specific group.

R/autoplot.ate.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## author: Brice Ozenne
44
## created: apr 28 2017 (14:19)
55
## Version:
6-
## last-updated: apr 27 2026 (18:32)
6+
## last-updated: maj 21 2026 (14:52)
77
## By: Brice Ozenne
8-
## Update #: 269
8+
## Update #: 268
99
#----------------------------------------------------------------------
1010
##
1111
### Commentary:

R/synthesize.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
### synthesize.R ---
22
#----------------------------------------------------------------------
3-
## Author: Johan Sebastian Ohlendorff Thomas Alexander Gerds
3+
## Author: Johan Sebastian Ohlendorff & Thomas Alexander Gerds
44
## Created: Apr 28 2021 (09:04)
55
## Version:
6-
## Last-Updated: feb 12 2026 (12:14)
7-
## By: Thomas Alexander Gerds
8-
## Update #: 156
6+
## Last-Updated: maj 21 2026 (14:54)
7+
## By: Brice Ozenne
8+
## Update #: 174
99
#----------------------------------------------------------------------
1010
##
1111
### Commentary:
@@ -248,7 +248,7 @@ synthesize.lvm <- function(object,
248248
...){
249249
from.formula <- length(attr(object,"from.formula"))>0
250250
# check whether variables in model are in data set
251-
if (!from.formula && !all(object$attributes$eventHistory$time$names %in% names(data))) {
251+
if (!from.formula && !all(object$attributes$eventHistory[[1]]$names %in% names(data))) {
252252
stop("Time or status variable could not be found in data set.")
253253
}
254254
var.model <- colnames(object$M)
@@ -507,7 +507,7 @@ synthesize.lvm <- function(object,
507507
}
508508
# Estimate regression coefficients in real data
509509
# and add them to the lvm object using lava::regression
510-
for(var in latent_vars[!(latent_vars %in% object$attributes$eventHistory$time$names)]){
510+
for(var in latent_vars[!(latent_vars %in% object$attributes$eventHistory[[1]]$names)]){
511511
covariates <- get_covariates(object,var,dichotomized_variables)
512512
reg_formula <- as.formula(paste0(var, "~", covariates))
513513
# we have three types of regression to deal with now. Either

0 commit comments

Comments
 (0)