print.cond_effect {stdmod} | R Documentation |
Print a 'cond_effect' Class Object
Description
Print the output of cond_effect()
or cond_effect_boot()
.
Usage
## S3 method for class 'cond_effect'
print(
x,
nd = 3,
nd_stat = 3,
nd_p = 3,
title = TRUE,
model = TRUE,
level_info = TRUE,
standardized = TRUE,
boot_info = TRUE,
table_only = FALSE,
t_ci = FALSE,
t_ci_level = 0.95,
...
)
Arguments
x |
The output of |
nd |
The number of digits for the variables. |
nd_stat |
The number of digits for test statistics (e.g., t). |
nd_p |
The number of digits for p-values. |
title |
If |
model |
If |
level_info |
If |
standardized |
If |
boot_info |
If |
table_only |
If |
t_ci |
If |
t_ci_level |
The level of confidence of the confidence intervals based on t statistics. Default is .95. |
... |
Additional arguments. Ignored by this function. |
Value
x
is returned invisibility.
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)
cond_effect(lm_raw, x = iv, w = mod)
lm_std <- std_selected(lm_raw, to_scale = ~ iv + mod,
to_center = ~ iv + mod)
cond_effect(lm_std, x = iv, w = mod)