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

calcMartResid(cumHaz, status)

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 Residuals (length N)

References

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

See also

calcMSR