ex_coxquad: Simulated example data with time to event outcome and...

ex_coxquadR Documentation

Simulated example data with time to event outcome and quadratic covariate effects

Description

A dataset containing simulated data where a time to event outcome depends quadratically on a partially observed covariate.

Usage

ex_coxquad

Format

A data frame with 1000 rows and 6 variables:

t

Time to event or censoring

d

Binary indicator of whether event occurred or individual was censored

z

Fully observed covariate, with linear effect on outcome (on log hazard scale)

x

Partially observed normally distributed covariate, with quadratic effect on outcome (on log hazard scale)

xsq

The square of x, which thus has missing values also

v

An auxiliary variable (i.e. not contained in the substantive model)


smcfcs documentation built on June 22, 2024, 10 a.m.