print.std_selected {stdmod}R Documentation

Print Basic Information of a 'std_selected' Class Object

Description

Provide information of centering and scaling, along with basic model information printed by the print() method of lm().

Usage

## S3 method for class 'std_selected'
print(x, ...)

Arguments

x

The output of std_selected() or std_selected_boot().

...

Arguments to be passed to print() method of lm().

Value

x is returned invisibly.

Author(s)

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

Examples


# Load a sample data set

dat <- test_x_1_w_1_v_1_cat1_n_500

# Do a moderated regression by lm
lm_raw <- lm(dv ~ iv*mod + v1 + cat1, dat)
summary(lm_raw)

# Standardize all variables except for categorical variables.
# Interaction terms are formed after standardization.
lm_std <- std_selected(lm_raw, to_scale = ~ .,
                               to_center = ~ .)
lm_std

# With bootstrapping
# nboot = 100 just for illustration. nboot >= 2000 should be used in read
# research.
lm_std_boot <- std_selected_boot(lm_raw, to_scale = ~ .,
                                         to_center = ~ .,
                                         nboot = 100)
lm_std_boot


[Package stdmod version 0.2.10 Index]