logrank_IPSW_RISCA: Calculate median survival time

logrank_IPSW_RISCAR Documentation

Calculate median survival time

Description

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.

Usage

logrank_IPSW_RISCA(time, status, var, weights = NULL)

Arguments

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.


MBender1992/emR documentation built on Feb. 18, 2025, 9:21 a.m.