robustHazard: Breslow estimator for the individuals at risk

View source: R/glmnetHazard.R

robustHazardR Documentation

Breslow estimator for the individuals at risk

Description

Computes the number of indiduals ar risk given the linear predictor

Usage

robustHazard(y, lp)

Arguments

y

Surv object.

lp

a vector of linear predictor. Computed from the X matrix (predictors) and the estimated coefficients (beta).

Value

A list of S3 objects.

n

number of observations used in the fit.

time

time points defined by the risk set.

n.event

the number of events that occur at time t.

n.risk

the number of individuals at risk at time t.

n.censor

the number of subjects who exit the risk set, without an event, at time t.


CYGUBICKO/glmnetpostsurv documentation built on Sept. 1, 2022, 7:26 p.m.