get_data: Extract data

View source: R/rinterface.R

get_dataR Documentation

Extract data

Description

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

Usage

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(s)

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)

gamlj/gamlj documentation built on April 17, 2024, 7:51 p.m.