create_step_func: generate step function object using y value and corresponding...

Description Usage Arguments Value Examples

View source: R/helper_for_onestep.R

Description

generate step function object using y value and corresponding jump points

Usage

1
create_step_func(y.vec, t.vec)

Arguments

y.vec

a vector of step function values

t.vec

a vector for all jump locations of step function. NOTE: the first element value of y.vec is the flat part LEFT of the first jump point specified in t.vec

Value

sfun a function object, that can perform any mapping

Examples

1
# TO DO

wilsoncai1992/onestep.survival documentation built on Dec. 17, 2017, 12:07 p.m.