splitTime: Split the analysis time into several intervals for...

View source: R/TimeEffects.R

splitTimeR Documentation

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)

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

Value

A long outcome table for time-varying coefficients.


Cyclops documentation built on June 22, 2024, 10:24 a.m.