Assuming that the censoring depends on covariates, the pseudo observations are calculated with the inverse probability of censoring weighted approach, where the censoring probabilities are estimated using Aalen's additive hazards model.
pseudo_aareg(
formula,
time,
cause = 1,
data,
type = c("cuminc", "survival", "rmean"),
formula.censoring = NULL,
ipcw.method = NULL
)
A formula specifying the outcome model. The left hand side must be a Surv object specifying a right censored survival or competing risks outcome. The status indicator, normally 0=alive, 1=dead. Other choices are TRUE/FALSE (TRUE = death) or 1/2 (2=death). For competing risks, the event variable will be a factor, whose first level is treated as censoring. The right hand side is the usual linear combination of covariates.
Numeric constant specifying the time at which the cumulative incidence or survival probability effect estimates are desired.
Numeric or character constant specifying the cause indicator of interest.
Data frame in which all variables of formula can be interpreted.
One of "survival", "cuminc", or "rmean"
A right-sided formula specifying which variables to use in the model for the censoring distribution.
Which method to use for calculation of inverse probability of censoring weighted pseudo observations. "binder" the default, uses the number of observations as the denominator, while the "hajek" method uses the sum of the weights as the denominator.
A vector of pseudo observations