stdmod: Standardized Moderation

This package includes functions for computing a standardized moderation effect and forming its confidence interval by nonparametric bootstrapping correctly. It was described briefly in the following publication (OSF project page). It supports moderated regression conducted by stats::lm() and path analysis with product term conducted by lavaan::lavaan().

More information on this package:

https://sfcheung.github.io/stdmod/

Installation

Stable release versions of this package can be downloaded below:

https://github.com/sfcheung/stdmod/releases

The latest developmental version of this package at GitHub can be installed by remotes::install_github():

remotes::install_github("sfcheung/stdmod")

Implementation

The main function, std_selected(), accepts an lm() output, standardizes variables by users, and update the results. If interaction terms are present, they will be formed after the standardization. If bootstrap confidence intervals are requested using std_selected_boot(), both standardization and regression will be repeated in each bootstrap sample, ensuring that the sampling variability of the standardizers (e.g., the standard deviations of the selected variables), are also taken into account.

Issues

If you have any suggestions and found any bugs, please feel feel to open a GitHub issue. Thanks.