predictedHazard: Compute predicted hazard

View source: R/posthocfuns.R

predictedHazardR Documentation

Compute predicted hazard

Description

This code is borrowed from internal function agsurv from survival package.

Usage

predictedHazard(fit)

Arguments

fit

fitted pcoxtime

Value

A list of S3 objects.

n

number of observations used in the fit.

events

total number of events of interest in the fit.

time

time points defined by the risk set.

n.risk

the number of individuals at risk at time t.

n.event

the number of events that occur at time t.

n.censor

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

surv

a vector or a matrix of estimated survival function.

chaz, hazard

a vector or a matrix of estimated cumulative hazard.


pcoxtime documentation built on May 13, 2022, 1:05 a.m.