Learn R Programming

smcfcs (version 1.7.1)

ex_ncc: Simulated nested case-control data

Description

A dataset containing simulated nested case-control data.

Usage

ex_ncc

Arguments

Format

A data frame with 728 rows and 8 variables:

t

Time to event or censoring

d

Indicator of whether event 1 occurred (d=1), or not (d=0)

x

Partially observed binary covariate

z

Fully observed covariate

id

An id variable

numrisk

Number of patients at risk at time of case's event

setno

The case-control set number

case

Binary indicator of case (=1) or control (=0)