CumulHazard: Cumulative hazard (integral of hazard) only

View source: R/RcppExports.R

CumulHazardR Documentation

Cumulative hazard (integral of hazard) only

Description

Cumulative hazard (integral of hazard) only

Usage

CumulHazard(X_GL, weights, tm, n_legendre, n, beta, is_pwcst, pwcst_weights)

Arguments

X_GL

list of matrices (length(X.GL)=n.legendre) for Gauss-Legendre quadrature

weights

vector of weights for Gauss-Legendre integration on [-1;1]

tm

vector of midpoints times for Gauss-Legendre integration; tm = 0.5*(t1 - t0)

n_legendre

number of nodes for Gauss-Legendre quadrature

n

number of individuals in the dataset

beta

vector of estimated regression parameters

is_pwcst

True if there is a piecewise constant baseline specified. False otherwise

pwcst_weights

if is_pwcst is TRUE, matrix of weights giving the time contribution of each individual on each sub-interval. Otherwise NULL

Value

cumulative hazard (integral of hazard)


survPen documentation built on April 4, 2025, 3:06 a.m.