ce.dat.prep: Create an object for cumulative exposure

View source: R/ce.dat.prep.R

ce.dat.prepR Documentation

Create an object for cumulative exposure

Description

Create a dataset with format that is suitable for analysis in the cumulative exposure model.

Usage

ce.dat.prep(xt.dat, failure.dat, ref_time = NULL)

Arguments

xt.dat

"data.frame" format object. The first and second columns are sample id and time, respectively. Other columns are dynamic covariates.

failure.dat

A "Surv" object. See Surv.

ref_time

Reference time for each sample. If not specified, ref_time is a vector of 0's.

Value

A list of failure.dat, xt.obj and aux.inf.


SPREDA documentation built on April 13, 2025, 5:11 p.m.