survGetParams: Get survival curve parameters

View source: R/utility.R

survGetParamsR Documentation

Get survival curve parameters

Description

Get survival curve parameters

Usage

survGetParams(points)

Arguments

points

A list of two-element vectors specifying the desired time and probability pairs that define the desired survival curve

Value

A vector of parameters that define the survival curve optimized for the target points. The first element of the vector represents the "f" parameter and the second element represents the "shape" parameter.

Examples

points <- list(c(60, 0.90), c(100, .75), c(200, .25), c(250, .10))
survGetParams(points)

simstudy documentation built on Nov. 23, 2023, 1:06 a.m.