timepoints: Calculate Estimates at Specific Timepoints

View source: R/cmprsk.R

timepointsR Documentation

Calculate Estimates at Specific Timepoints

Description

Find values at specified timepoints from curves specified as all corners of step functions.

Usage

timepoints(w, times)

Arguments

w

a list containing the estimates, with points for all corners of the step function. (Usually created by cuminc.) Each component in the list contains the estimate for a different group. Each component has components giving times, function estimates, and variances (see cuminc)

times

vector of times where estimates are needed

Value

A list with components

$est

a matrix of estimates of the subdistributions with a row for each component in w and a column for each time

$var

a matrix giving the corresponding variances.

See Also

cuminc


cmprsk documentation built on March 18, 2022, 7:46 p.m.

Related to timepoints in cmprsk...