get_ipcw_mat: Get inverse probability of censoring weights

View source: R/calc_risks.R

get_ipcw_matR Documentation

Get inverse probability of censoring weights

Description

This function returns a vector of inverse probability of censoring weights from an unadjusted Cox model for censoring times.

Usage

get_ipcw_mat(y2, delta2, t_cutoff)

Arguments

y2

Numeric vectors of length n with (possibly censored) non-terminal and terminal event times

delta2

Numeric vectors of length n with indicators of 1 if the event was observed and 0 otherwise

t_cutoff

Numeric vector indicating the time(s) to compute the risk profile.

Value

a vector.


hreed7/SemiCompRisksPen documentation built on Dec. 15, 2024, 5:41 p.m.