(log) density, hazard, and survival functions for AFT Weibull parametric family.

weibull_aft_log_density(t, eta, shape)

weibull_aft_log_hazard(t, eta, shape)

weibull_aft_log_survival(t, eta, shape)

weibull_aft_density(t, eta, shape)

weibull_aft_hazard(t, eta, shape)

weibull_aft_survival(t, eta, shape)

weibull_aft_mean(eta, shape)

weibull_aft_sd(eta, shape)

weibull_aft_r(n, eta, shape)

weibull_aft_q(p, eta, shape)

weibull_aft_p(q, eta, shape)

Arguments

t

vector of survival times

eta

linear predictor

shape

auxiliary parameter

n

number of observations

p

vector of probabilities

q

vector of quantiles

Value

weibull_aft_density, weibull_aft_hazard, and weibull_aft_survival return the density, hazard, and survival of the specified survival distribution. The weibull_aft_log_density, weibull_aft_log_hazard, weibull_aft_log_survival return log of the corresponding qualities. weibull_aft_mean and weibull_aft_sd

return the mean and standard deviation of the specified survival distribution. weibull_aft_r, weibull_aft_q, and weibull_aft_p return a random generation, quantiles, and cumulative probabilities of the specified survival distribution.