Learn R Programming

npsurvSS (version 1.1.0)

dmaxU: Maximum observed time

Description

Density, distribution function, and expected value for the maximum observed time in a single arm of patients.

Usage

dmaxU(x, arm, include_cens = T)

pmaxU(q, arm, include_cens = T, lower.tail = T)

emaxU(arm, include_cens = T)

Value

dmaxU gives the density, pmaxU gives the distribution function, and emaxU gives the expected value.

Arguments

x, q

vector of quantiles.

arm

object of class 'arm'.

include_cens

logical; if TRUE, include time-to-censoring as potential observed time; otherwise, observed time equals time-to-event.

lower.tail

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

Details

Given a patient's time-to-event \(T_i\) and time-to-censoring \(C_i\), \(U_i=\min(T_i, C_i)\) defines the patient's observed time. The maximum observed time over patients of a single arm is then \(\max_i U_i\).

See Also

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