Call in an 'lm_betaselect' or 'glm_betaselect' Object
Source:R/lm_betaselect_methods.R
getCall.lm_betaselect.Rd
The getCall
-method
for an lm_betaselect
-class or
glm_betaselectd
-class objects.
Arguments
- x
An
lm_betaselect
-class orglm_betaselect
-class object from which the call is to be extracted.- what
Which call to extract. For
"lm_betaselect"
or"glm_betaselect"
the call tolm_betaselect()
orglm_betaselect()
is extracted. For"beta"
or"standardized"
, the call used to fit the model after selected variables standardized is extracted. For"raw"
or"unstandardized"
, the call used to fit hte model before standardization is extracted.- ...
Additional arguments. Ignored.
Details
This works in the same way
the default getCall
-method does for
the outputs of stats::lm()
and stats::glm()
.
Author
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
Examples
data(data_test_mod_cat)
lm_beta_x <- lm_betaselect(dv ~ iv*mod + cov1,
data = data_test_mod_cat,
to_standardize = "iv")
getCall(lm_beta_x)
#> betaselectr::lm_betaselect(formula = dv ~ iv * mod + cov1, data = data_test_mod_cat,
#> to_standardize = "iv")
getCall(lm_beta_x, what = "beta")
#> stats::lm(formula = dv ~ iv * mod + cov1, data = betaselectr::std_data(data = data_test_mod_cat,
#> to_standardize = "iv"))
getCall(lm_beta_x, what = "raw")
#> stats::lm(formula = dv ~ iv * mod + cov1, data = data_test_mod_cat)