get_hazard: Compute the (Cumulative) Baseline Hazard from Cox Model

View source: R/general_markov_model.R

get_hazardR Documentation

Compute the (Cumulative) Baseline Hazard from Cox Model

Description

Compute the Breslow type baseline hazard and cumulative baseline hazard at each event time from a Cox model.

Usage

get_hazard(fit)

Arguments

fit

The results of a coxph fit.

Details

See also basehaz, we only extract the estimated baseline hazard and baseline cumulative hazard from the results of a coxph fit.

Value

A list contains two dataframes.

Lambda

See also basehaz, returns the Breslow type cumulative baseline hazard.

lambda

Returns the Breslow type baseline hazard.

See Also

basehaz


semicmprskcoxmsm documentation built on April 30, 2022, 1:08 a.m.