Calculate Martingale Survival Residuals for a vector of cumulative hazards and status indicators (0/FALSE for censoring and 1/TRUE for events)

calcMSR(cumHaz, status = NA)

Arguments

cumHaz

A vector of cumulative hazards for the event of interest (length N)

status

A vector of status indicators (length N)

Value

A vector of Martingale Survival Residuals (length N)

References

https://www.biorxiv.org/content/early/2017/01/31/104406

See also

calcMSR