Learn R Programming

reReg (version 1.3.0)

simDat: Simulated dataset for demonstration

Description

A simulated data frame with variables

id

subjects identification

Time

observation time

status

terminal event indicator; 1 if a terminal event is recorded

event

recurrent event indicator; 1 if a recurrent event is recorded

x1

baseline covariate generated from a standard uniform distribution

x2

baseline covariate generated from a standard uniform distribution (independent from z1

Usage

data(simDat)

Arguments

Format

A data frame with 274 rows and 6 variables.

Details

The sample dataset is generated by set.seed(1); simSC(30, c(-1, 1), c(-1, 1)). See simSC for instruction on simulating recurrent event data from scale-change models.