Learn R Programming

GofCens (version 1.1)

nba: Survival times of former NBA players.

Description

Survival times of former NBA players after their NBA career.

Usage

data("nba")

Arguments

Format

A data frame with 3962 observations on the following 3 variables.

id

Player ID

survtime

Time (in years) from end of NBA career until either death or July 31, 2019.

cens

Death indicator (1, exact survival time; 0, right-censored survival time).

Details

The survival times of former NBA players were analyzed by Martínez et al. (2022).

Examples

Run this code
data(nba)
cumhazPlot(Surv(survtime, cens) ~ 1, nba)

Run the code above in your browser using DataLab