A Qfamily
object can be used to identify a certain type of distribution within a call to Qest
. You can supply either the name of the family, or the function itself, or a call to it. For example, the following are equivalent: Qest(formula, "Qpois")
, Qest(formula, Qpois)
, and Qest(formula, Qpois())
. The latter syntax can be used to pass additional arguments, if any.
The Qnorm
family fits a normal homoskedastic model in which the mean is described by a linear predictor. The parameters are: log(sigma), beta
. Qest(formula, Qnorm)
is equivalent to Qlm(formula)
, but returns a very basic output. However, Qest
allows for censored and truncated data, while Qlm
does not.
The Qgamma
family fits a Gamma distribution in which the log-scale is modeled by a linear predictor. The model parameters are: log(shape), beta
.
The Qpois
family fits a Poisson distribution in which the log-rate is modeled by a linear predictor. In reality, to obtain a continuous quantile function, qpois
is replaced by the inverse, with respect to \(y\), of the upper regularized gamma function, \(Q(y,\lambda)\). It is recommended to apply Qpois
to a jittered response (i.e., y + runif(n)
).
The Qunif
family fits a Uniform distribution \(U(a,b)\) in which both \(a\) and \(b\) are modeled by linear predictors. The design matrix, however, is the same for \(a\) and \(b\). Use Qunif(min = FALSE)
to fit a \(U(0,b)\) model. The parameters are: beta_a, beta_b
, or only beta_b
if min = FALSE
.
The families Qnorm
and Qgamma
can be used when the data are censored or truncated, while Qpois
and Qunif
cannot. All families can be estimated without covariates, using formula = ~ 1
.