get_steps_by_cond: Get Steps Data by Condition

View source: R/utils.R

get_steps_by_condR Documentation

Get Steps Data by Condition

Description

The get_steps_by_cond function calculates steps data based on survival model results. This utility function is used inside the do_kpm() function of dropR.

Usage

get_steps_by_cond(sfit, condition = NULL)

Arguments

sfit

An object representing survival model results (e.g., from a Kaplan-Meier model).

condition

Optional. An experimental condition to include in the output data frame, defaults to NULL.

Value

Returns a data frame containing the steps data, including time, survival estimates, upper confidence bounds, and lower confidence bounds.

See Also

do_kpm()


dropR documentation built on March 3, 2026, 5:07 p.m.