andersenplot: Plot hazards for two strata for each time. At times with an...

View source: R/andersen.R

andersenplotR Documentation

Plot hazards for two strata for each time. At times with an event in one but not the other group, the fitted hazard remains constant, and so the plot is a step function. If hazards are proportional between strata, then the plot should be close to a straight line.

Description

Plot hazards for two strata for each time. At times with an event in one but not the other group, the fitted hazard remains constant, and so the plot is a step function. If hazards are proportional between strata, then the plot should be close to a straight line.

Usage

andersenplot(fit)

Arguments

fit

A coxph fit with a stratification term.


PHInfiniteEstimates documentation built on Nov. 24, 2023, 9:06 a.m.