Package: stdmod 0.2.13

stdmod: Standardized Moderation Effect and Its Confidence Interval

Functions for computing a standardized moderation effect in moderated regression and forming its confidence interval by nonparametric bootstrapping as proposed in Cheung, Cheung, Lau, Hui, and Vong (2022) <doi:10.1037/hea0001188>. Also includes simple-to-use functions for computing conditional effects (unstandardized or standardized) and plotting moderation effects.

Authors:Shu Fai Cheung [aut, cre], David Weng Ngai Vong [ctb]

stdmod_0.2.13.tar.gz
stdmod_0.2.13.zip(r-4.7)stdmod_0.2.13.zip(r-4.6)stdmod_0.2.13.zip(r-4.5)
stdmod_0.2.13.tgz(r-4.6-any)stdmod_0.2.13.tgz(r-4.5-any)
stdmod_0.2.13.tar.gz(r-4.7-any)stdmod_0.2.13.tar.gz(r-4.6-any)
stdmod_0.2.13.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
stdmod/json (API)

# Install 'stdmod' in R:
install.packages('stdmod', repos = c('https://sfcheung.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sfcheung/stdmod/issues

Pkgdown/docs site:https://sfcheung.github.io

Datasets:

On CRAN:

Conda:

bootstrappingconfidence-intervaleffect-sizesmoderationregressionstandardizationstandardized-moderation

5.67 score 1 stars 52 scripts 413 downloads 8 exports 36 dependencies

Last updated from:7956549ea9. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK248
source / vignettesOK203
linux-release-x86_64OK230
macos-release-arm64OK141
macos-oldrel-arm64OK106
windows-develOK124
windows-releaseOK126
windows-oldrelOK114
wasm-releaseOK133

Exports:cond_effectcond_effect_bootplotmodstd_selectedstd_selected_bootstdmodstdmod_bootstdmod_lavaan

Dependencies:bootclicpp11farverggplot2glueGPArotationgtableigraphisobandlabelinglatticelavaanlifecyclelmhelprsmagrittrmanymomeMASSMatrixmnormtnlmenumDerivpbapplypbivnormpkgconfigpsychquadprogR6RColorBrewerrlangS7scalessemToolsvctrsviridisLitewithr

A Quick Start Guide on Using std_selected()
Introduction | This Guide Shows to use std_selected() to: | Sample Dataset | Model | Correct Standardization For the Moderated Regression | The Arguments | Advantage | Nonparametric Bootstrap Confidence Intervals | Standardize Independent Variable (Focal Variable) and Moderator | Further Information | Reference(s)

Last update: 2026-01-04
Started: 2022-04-13

Mean Center and Standardize Selected Variable by std_selected()
Purpose | Setup the Environment | Load the Dataset | Moderated Regression | Mean Center the Moderator | Mean Center The Moderator and the Focal Variable | Standardize The Moderator and The Focal Variable | Standardize The Moderator, The Focal Variable, and the Outcome Variable | Standardize All Variables | The Usual Standardized Solution | Improved Confidence Interval For "Betas" | Further Information | Reference

Last update: 2026-01-04
Started: 2022-05-05

Standardized Moderation Effect by std_selected()
Purpose | Setup the Environment | Load the Dataset | Moderated Regression | Standardized Moderation Effect | The Common (Incorrect) Standardized Solution | Improved Confidence Intervals | Further Information | Reference(s)

Last update: 2026-01-04
Started: 2022-05-05

Standardized Moderation Effect in a Path Model by stdmod_lavaan()
Purpose | Setup the Environment | Load the Dataset | Fit the Model by lavaan::sem() | Compute the Standardized Moderation Effect | Form Bootstrap Confidence Interval | Remarks | Reference(s)

Last update: 2026-01-04
Started: 2022-05-05

Conditional Effects by cond_effect()
Introduction | What cond_effect() Can Do | Major Arguments | Regression Output, Predictor (x), and Moderator (w) | Levels of the Moderator | Numeric Moderators | Categorical Moderators | Nonparametric Bootstrap Confidence Intervals | Further Information | Reference

Last update: 2023-09-09
Started: 2022-05-05

Moderation Effects Plots by plotmod()
Introduction | What plotmod() Can Do | Major Arguments | Model, Predictor (x), and Moderator (w) | Levels of the Moderator | Numeric Moderators | Categorical Moderators | Tumble Graph | Decoration and Annotation | Variable Labels | Title | Line Width and Point Size | Information | Conditional Effects | Definitions of the Levels of the Moderator | Any Variables Standardized? | Tweak the Graph | Technical Notes for Tumble Graph | Further Information | Reference

Last update: 2023-03-26
Started: 2022-05-05

Readme and manuals

Help Manual

Help pageTopics
The 'add1' Method for a 'std_selected' Class Objectadd1.std_selected
Conditional Effect in a 'cond_effect'-Class Objectcoef.cond_effect
Standardized Moderation Effect in a 'stdmod_lavaan' Class Objectcoef.stdmod_lavaan
Conditional Effectscond_effect cond_effect_boot
Confidence Intervals for a 'cond_effect' Class Objectconfint.cond_effect
Confidence Intervals for a 'std_selected' Class Objectconfint.std_selected
Confidence Intervals for a 'stdmod_lavaan' Class Objectconfint.stdmod_lavaan
Moderation Effect Plotplotmod
Print a 'cond_effect' Class Objectprint.cond_effect
Print Basic Information of a 'std_selected' Class Objectprint.std_selected
Print a 'stdmod_lavaan' Class Objectprint.stdmod_lavaan
Print the Summary of a 'std_selected' Class Objectprint.summary.std_selected
Sample Dataset: Predicting Sleep Durationsleep_emo_con
Standardize Variables in a Regression Modelstd_selected std_selected_boot
Standardized Moderation Effect Given an 'lm' Outputstdmod stdmod_boot
Standardized Moderation Effect and Its Bootstrap CI in 'lavaan'stdmod_lavaan
Summary Method for a 'std_selected' Class Objectsummary.std_selected
Sample Dataset: A Path Model With A Moderatortest_mod1
Sample Dataset: A Path Model With A Moderatortest_mod2
Sample Dataset: A Path Model With A Moderatortest_mod3_miss
Sample Dataset: One IV, One Moderator, Two Covariatestest_x_1_w_1_v_1_cat1_n_500
Sample Dataset: One IV, One Moderator, Two Covariatestest_x_1_w_1_v_1_cat1_xw_cov_n_500
Sample Dataset: One IV, One 3-Category Moderator, Two Covariatestest_x_1_w_1_v_1_cat1_xw_cov_wcat3_n_500
Sample Dataset: One IV, One Moderator, Two Covariatestest_x_1_w_1_v_2_n_500
The 'update' Method for a 'std_selected' Class Objectupdate.std_selected
The 'vcov' Method for a 'std_selected' Class Objectvcov.std_selected