Learn R Programming

npsurvSS (version 1.1.0)

dloss: Loss to follow-up

Description

Density, distribution function, hazard function, quantile function, and random generation for the loss to follow-up distribution.

Usage

dloss(x, arm)

ploss(q, arm, lower.tail = T)

hloss(x, arm)

qloss(p, arm, lower.tail = T)

rloss(n = 1, arm)

Value

dloss gives the density, ploss gives the distribution function, hloss gives the hazard function, qloss gives the quantile function, and rloss generates random deviates.

Arguments

x, q

vector of quantiles.

arm

object of class 'arm'.

lower.tail

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

p

vector of probabilities.

n

number of observations.

See Also

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