wald_test() provides a small reporting-friendly hypothesis-test surface for
fitted gamlss.longitudinal models. It uses the same variance-covariance
route as summary.gamlss.longitudinal() and confint.gamlss.longitudinal(),
so numerical-Hessian tests should be reported as approximate.
Usage
wald_test(
object,
terms = NULL,
L = NULL,
rhs = 0,
joint = FALSE,
method = "analytical",
...
)Arguments
- object
A fitted
gamlss.longitudinalobject.- terms
Optional coefficient names, formula-term names such as
"mu.treatment", coefficient-name prefixes, or numeric indices. WhenLisNULL, these select coefficients for individual tests or a joint test.- L
Optional contrast matrix. Columns must either be named with coefficient names or have one column per fixed coefficient in model order.
- rhs
Null-hypothesis value. Either a scalar or one value per tested row.
- joint
Logical; when
TRUE, test selectedtermsjointly. Contrast matrices supplied throughLare always tested jointly.- method
Variance-covariance method passed to
vcov.gamlss.longitudinal().- ...
Additional arguments passed to
vcov.gamlss.longitudinal().