dloss: Loss to follow-up

View source: R/dist_loss.R

dlossR 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'.


npsurvSS documentation built on May 29, 2024, 11:23 a.m.