Learn R Programming

heemod (version 1.0.2)

extract_stratum: Extract Product-Limit Table for a Stratum

Description

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

Usage

extract_stratum(sf, index)

Value

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

Arguments

sf

A survfit object.

index

The index number of the strata to extract.