Learn R Programming

dropR (version 1.0.3)

get_steps_by_cond: 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)

Value

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

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.

See Also

do_kpm()