Learn R Programming

Cyclops (version 3.4.0)

splitTime: Split the analysis time into several intervals for time-varying coefficients.

Description

splitTime split the analysis time into several intervals for time-varying coefficients

Usage

splitTime(shortOut, cut)

Value

A long outcome table for time-varying coefficients.

Arguments

shortOut

A data frame containing the outcomes with predefined columns (see below).

cut

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