library("gamlss2")
## no runnable example; see \code{\link{step_gamlss2}} and
## \code{\link{select_gamlss2}} for end-to-end usageExtracting a New Formula After Selection Algorithms
Description
The generic function extracts the selected model terms from a fitted selection procedure and returns the corresponding reduced model formula.
Usage
new_formula(object, ...)
Arguments
object
|
A fitted model object produced by a selection routine such as step_gamlss2 or select_gamlss2.
|
…
|
Not used yet. |
Details
The function is intended for fitted models that store the outcome of an automatic term-selection step in object$selection$formula. It extracts the selected right-hand side terms and restores the original response on the left-hand side.
For multi-parameter distributional models, the returned object is a Formula with one right-hand side part for each distribution parameter. This makes it convenient to inspect the final model or to refit it without repeating the selection step.
Value
A Formula containing the selected model terms.
See Also
step_gamlss2, select_gamlss2, gamlss2