dsurv: Survival

Description Usage Arguments Value See Also

View source: R/dist_surv.R

Description

Density, distribution function, hazard function, quantile function, and random generation for the survival distribution.

Usage

1
2
3
4
5
6
7
8
9
dsurv(x, arm, include_cured = T)

psurv(q, arm, include_cured = T, lower.tail = T)

hsurv(x, arm, include_cured = T)

qsurv(p, arm, include_cured = T, lower.tail = T)

rsurv(n = 1, arm, include_cured = T)

Arguments

x, q

vector of quantiles.

arm

object of class arm.

include_cured

logical; if TRUE, mixture distribution of cured and uncured patients is considered; otherwise, only the distribution for uncured patients is considered.

lower.tail

logical; if TRUE, probabilities are P(X ≤ x); otherwise, P(X > x).

p

vector of probabilities.

n

number of observations.

Value

dsurv gives the density, psurv gives the distribution function, hsurv gives the hazard function, qsurv gives the quantile function, and rsurv generates random deviates.

See Also

create_arm and create_arm_lachin for creating an object of class 'arm'.


npsurvSS documentation built on Jan. 11, 2020, 9:18 a.m.