CalcMCF: Calculate Mean Cumulative Function

View source: R/MCF.R

CalcMCFR Documentation

Calculate Mean Cumulative Function

Description

Tabulates the mean cumulative function. See equation 2.1 of <doi:10.1111/j.0006-341X.2000.00554.x>.

Usage

CalcMCF(idx, status, time, calc_var = TRUE, weights = NULL)

Arguments

idx

Unique subject index.

status

Status, coded as 0 for censoring, 1 for event, 2 for death.

time

Observation time.

calc_var

Calculate variance of the MCF?

weights

Jump weights.

Value

Data.frame with these columns:

  • 'times', distinct observation times.

  • 'censor', number of censorings.

  • 'death', number of deaths.

  • 'event', number of events.

  • 'haz', instantaneous hazard (of death).

  • 'surv', survival probability.

  • 'event_rate', instantaneous event rate.

  • 'mcf', mean cumulative function.

  • 'se_mcf', standard error of the MCF.


zrmacc/MCC documentation built on July 16, 2025, 4:04 p.m.