dmaxU: Maximum observed time

View source: R/calc_maxU_and_minimaxU.R

dmaxUR Documentation

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)

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.

Value

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

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.