CalcMCF | R Documentation |
Tabulates the mean cumulative function. See equation 2.1 of <doi:10.1111/j.0006-341X.2000.00554.x>.
CalcMCF(idx, status, time, calc_var = TRUE, weights = NULL)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.