This function returns a dataset with the variables in the GAMLj model transformed according to GAMLj options. It is usefull to run additional models with other R packages with the same setup used by GAMLj

get_data(object, ...)

Arguments

object

a gamlj results object of the class `gamlj*Results`

...

additional arguments passed to the GAMLj estimation function

Value

a dataset

Author

Marcello Gallucci

Examples

data('qsport')
gmod<-GAMLj3::gamlj_lm(formula = performance ~ hours,
                data = qsport,
                covs_scale = c(hours='standardized'))

gdata<-get_data(gmod)
lm(performance ~ hours,data=gdata)
#> 
#> Call:
#> lm(formula = performance ~ hours, data = gdata)
#> 
#> Coefficients:
#> (Intercept)        hours  
#>      37.880        4.422  
#>