dloss {npsurvSS}R Documentation

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)

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.

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.

See Also

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


[Package npsurvSS version 1.1.0 Index]