get_outcome_mat: Get matrix of observed outcome categories

View source: R/calc_risks.R

get_outcome_matR Documentation

Get matrix of observed outcome categories

Description

This function returns a matrix giving the observed outcome categories of each observation at various time cutoffs.

Usage

get_outcome_mat(y1, y2, delta1, delta2, t_cutoff)

Arguments

y1

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

y2

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

delta1

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

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 matrix or array.


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