survival_curve: survival_curve

Description Usage Arguments Value

Description

Survival curve calculation for parametric families

Usage

1
survival_curve(family, param.mtx, times, P = NULL, type = "interval")

Arguments

family

character; any of the following distributional families: c("weibull", "gompertz", "exponential", "log-normal", "log-logistic", "fp1", "fp2")

param.mtx

is a [n x m] numeric matrix, where m is the number of parameters n is number of samples from their underlying distribution

times

vector of timepoints at which to calculate survival S(t)

P

vector of powers, used only if family == "fp1" (uses p[1]) or family == "fp2" (uses p[1] and p[2])

type

string: interval, mean or all

Value

a vector c(q1, median, q3, mean)


certara/survivalnma documentation built on June 5, 2019, 11:02 a.m.