qbs {xhaz} | R Documentation |
qbs function
Description
a function indicating which covariates have a time-dependent effect in the formula.
Usage
qbs(x)
Arguments
x |
a covariate to be considered in the |
Value
No return value, called for side effects.
Examples
library("xhaz")
library("numDeriv")
library("survexp.fr")
library("splines")
fit.tdphBS <- xhaz(
formula = Surv(obs_time_year, event) ~ ageCentre + qbs(immuno_trt),
data = dataCancer, ratetable = survexp.fr,
interval = c(0, NA, NA, max(dataCancer$obs_time_year)),
rmap = list(age = 'age', sex = 'sexx', year = 'year_date'),
baseline = "bsplines", pophaz = "classic")
print(fit.tdphBS)
[Package xhaz version 2.0.2 Index]