survFUN: Generate Survival Function

Description Usage Arguments Value See Also

View source: R/funcs_2.R

Description

Taking survfit or survreg output to create the corresponding survival function.

Usage

1
survFUN(object, period.length, how.many = 1000)

Arguments

object

survfit or survreg object.

period.length

Length of each time period.

how.many

How many quantiles you want for survreg case.

Value

A function with one parameter: the vector of times to calculate the survival probabilities.

See Also

survs_plot, eventsCount.


gcastella/predRCT documentation built on May 16, 2019, 10:15 p.m.