getCall.lm_betaselect: Call in an 'lm_betaselect' or 'glm_betaselect' Object

View source: R/lm_betaselect_methods.R

getCall.lm_betaselectR Documentation

Call in an 'lm_betaselect' or 'glm_betaselect' Object

Description

The getCall-method for an lm_betaselect-class or glm_betaselectd-class objects.

Usage

## S3 method for class 'lm_betaselect'
getCall(
  x,
  what = c("lm_betaselect", "beta", "standardized", "raw", "unstandardized"),
  ...
)

## S3 method for class 'glm_betaselect'
getCall(
  x,
  what = c("glm_betaselect", "beta", "standardized", "raw", "unstandardized"),
  ...
)

Arguments

x

An lm_betaselect-class or glm_betaselect-class object from which the call is to be extracted.

what

Which call to extract. For "lm_betaselect" or "glm_betaselect" the call to lm_betaselect() or glm_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().

Value

It returns the call requested.

Author(s)

Shu Fai Cheung https://orcid.org/0000-0002-9871-9448

See Also

lm_betaselect(), glm_betaselect(), and stats::getCall()

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)
getCall(lm_beta_x, what = "beta")
getCall(lm_beta_x, what = "raw")


betaselectr documentation built on April 3, 2025, 8:51 p.m.