View source: R/print_cond_eff.R
print.cond_effect | R Documentation |
Print the output of cond_effect()
or cond_effect_boot()
.
## 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,
...
)
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. |
x
is returned invisibility.
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.