extract_stratum: Extract Product-Limit Table for Stratum

View source: R/surv_survfit.r

extract_stratumR Documentation

Extract Product-Limit Table for Stratum

Description

Extracts the product-limit table from a survfit object for a given stratum. Only survival::survfit() and unstratified survival::survfit.coxph() objects are supported.

Usage

extract_stratum(sf, index)

Arguments

sf

A survit object.

index

The index number of the strata to extract.

Value

A data frame of the product-limit table for the given stratum.


PolicyAnalysisInc/herosurv documentation built on May 21, 2023, 10:12 a.m.