logrank_IPSW_RISCA | R Documentation |
The user enters individual survival data and the weights previously calculated (by using logistic regression for instance). The usual log-rank test is adapted to the corresponding adjusted survival curves.
logrank_IPSW_RISCA(time, status, var, weights = NULL)
time |
A numeric vector with the follow up time. |
status |
A numeric vector with the event indicator (0=right censored, 1=event). |
var |
A numeric vector with the binary var under interest (only two groups). |
weights |
The weights for correcting the contribution of each individual. By default, the weights are all equaled to 1 and the survival curves correspond to the usual Kaplan-Meier estimator. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.