n_at_risk: Number of subjects at risk at each time point in 'ncc_2'

n_at_riskR Documentation

Number of subjects at risk at each time point in ncc_2

Description

Number of subjects at risk at each time point in ncc_2

Usage

n_at_risk

Format

A data frame with 2773 rows and 4 variables:

Time

Event time (in years) of cases in ncc_2.

gender

Gender of subjects (1 for male and 0 for female).

age_cat

Age category of subjects.

n.risk

Number of subjects at risk at each event time in each gender-age strata.

Details

Note how column names in n_at_risk match those in ncc_2. This is critical for computing the KM-type weights for subjects in ncc_2.


nyilin/SamplingDesignTools documentation built on Nov. 20, 2022, 8:07 a.m.