Returns the fitted R model stored in a GAMLj results object with encoded variable names and factor levels restored to their original values. The model is refitted on its decoded model frame so that its formula, terms, coefficients, contrasts, and data remain internally consistent.

get_model(object, ...)

Arguments

object

a gamlj results object of class gamlj*Results

...

additional arguments passed to stats::update()

Value

the underlying fitted R model with decoded names and factor levels

Author

Marcello Gallucci

Examples

data("qsport")
gmod <- GAMLj3::gamlj_lm(
    formula = performance ~ hours,
    data = qsport
)

rmodel <- get_model(gmod)