simdat3: Simulated joint longitudinal and survival dataset containing...

Description Usage Format Details See Also

Description

A simulated dataset containing a single continuous longitudinal outcome and a single survival outcome, with data available from 5 studies. This dataset does not have longitudinal measurements capped at each individual's survival time.

Usage

1

Format

A list of three objects:

longitudinal

A list of long format longitudinal datasets one for each of the 5 studies included in the dataset. Each of these datasets contains the following variables:

id

long version of the id variable for the data. Identical ids between the longitudinal and the survival datasets identify the same individual

Y

a continuous longitudinal outcome

time

the longitudinal time variable

study

a long version of the study membership indicator

intercept

a long version of the intercept, always takes a value of 1

treat

a long version of the binary treatment group indicator

ltime

a duplicate of the longitudinal time variable, duplicated as part of the longitudinal data simulation process

survival

A list of survival datasets, one for each of the 5 studies included in the dataset. Each of these datasets contains the following variables:

id

the id variable for the data. Identical ids between the longitudinal and the survival datasets identify the same individual

survtime

the survival time for each individual at which they experienced the event or were censored. This is on the same scale as the longitudinal time measurements.

cens

censoring indicator for the survival data where 1 indicates an event and 0 indicates censoring

study

study membership indicator

treat

binary treatment group indicator

percentevent

A list of the percentage of events experienced in each datasets. The first element contains the percentage of events observed for the first simulated study and so on.

Details

This is a simulated dataset generated in order to show how the function removeafter works, as it does not cap longitudinal outcomes at each individual's survival time. This data was generated by manually stepping through the code available in simjointmeta and retaining instead of discarding any simulated longitudinal measurements recorded after the individual in question's survival time.

See Also

simjointmeta, removeafter


joineRmeta documentation built on Jan. 24, 2020, 5:10 p.m.