Learn R Programming

simstudy (version 0.7.0)

survGetParams: Get survival curve parameters

Description

Get survival curve parameters

Usage

survGetParams(points)

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.

Arguments

points

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

Examples

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

Run the code above in your browser using DataLab