R/TimeEffects.R
splitTime.Rd
splitTime
split the analysis time into several intervals for time-varying coefficients
splitTime(shortOut, cut)
A data frame containing the outcomes with predefined columns (see below).
Numeric: Time points to cut at
These columns are expected in the shortOut object:
rowId | (integer) | Row ID is used to link multiple covariates (x) to a single outcome (y) |
y | (real) | Observed event status |
time | (real) | Observed event time |
A long outcome table for time-varying coefficients.