
manymome - Mediation, Moderation and Moderated-Mediation After Model Fitting
Computes indirect effects, conditional effects, and conditional indirect effects in a structural equation model or path model after model fitting, with no need to define any user parameters or label any paths in the model syntax, using the approach presented in Cheung and Cheung (2024) <doi:10.3758/s13428-023-02224-z>. Can also form bootstrap confidence intervals by doing bootstrapping only once and reusing the bootstrap estimates in all subsequent computations. Supports bootstrap confidence intervals for standardized (partially or completely) indirect effects, conditional effects, and conditional indirect effects as described in Cheung (2009) <doi:10.3758/BRM.41.2.425> and Cheung, Cheung, Lau, Hui, and Vong (2022) <doi:10.1037/hea0001188>. Model fitting can be done by structural equation modeling using lavaan() or regression using lm().
Last updated
bootstrappingconfidence-intervallavaanmanymomemediationmoderated-mediationmoderationregressionsemstandardized-effect-sizestructural-equation-modeling
9.14 score 5 stars 5 dependents 304 scripts 581 downloads
semptools - Customizing Structural Equation Modelling Plots
Most function focus on specific ways to customize a graph. They use a 'qgraph' output as the first argument, and return a modified 'qgraph' object. This allows the functions to be chained by a pipe operator.
Last updated
diagramgraphlavaanplotsemstructural-equation-modeling
8.24 score 8 stars 2 dependents 134 scripts 849 downloads
power4mome - Power Analysis for Moderation and Mediation
Power analysis and sample size determination for moderation, mediation, and moderated mediation in models fitted by structural equation modelling using the 'lavaan' package by Rosseel (2012) <doi:10.18637/jss.v048.i02> or by multiple regression. The package 'manymome' by Cheung and Cheung (2024) <doi:10.3758/s13428-023-02224-z> is used to specify the indirect paths or conditional indirect paths to be tested.
Last updated
lavaanmediationmoderated-mediationmoderationpower-analysissample-sizesemstructural-equation-modeling
6.16 score 1 stars 65 scripts 428 downloads
semfindr - Influential Cases in Structural Equation Modeling
Sensitivity analysis in structural equation modeling using influence measures and diagnostic plots. Support leave-one-out casewise sensitivity analysis presented by Pek and MacCallum (2011) <doi:10.1080/00273171.2011.561068> and approximate casewise influence using scores and casewise likelihood. An introduction to the package can be found in Cheung and Lai (2026) <doi:10.1080/00273171.2026.2634293>.
Last updated
diagnosticsinfluential-caseslavaanoutlier-detectionsensitivity-analysisstructural-equation-modeling
6.02 score 1 stars 1 dependents 88 scripts 541 downloads
semlbci - Likelihood-Based Confidence Interval in Structural Equation Models
Forms likelihood-based confidence intervals (LBCIs) for parameters in structural equation modeling, introduced in Cheung and Pesigan (2023) <doi:10.1080/10705511.2023.2183860>. Currently implements the algorithm illustrated by Pek and Wu (2018) <doi:10.1037/met0000163>, and supports the robust LBCI proposed by Falk (2018) <doi:10.1080/10705511.2017.1367254>.
Last updated
confidence-intervalslavaanlikelihood-basedprofile-likelihoodstructural-equation-modeling
6.02 score 1 stars 175 scripts 406 downloads
lmhelprs - Helper Functions for Linear Model Analysis
A collection of helper functions for multiple regression models fitted by lm(). Most of them are simple functions for simple tasks which can be done with coding, but may not be easy for occasional users of R. Most of the tasks addressed are those sometimes needed when using the 'manymome' package (Cheung and Cheung, 2023, <doi:10.3758/s13428-023-02224-z>) and 'stdmod' package (Cheung, Cheung, Lau, Hui, and Vong, 2022, <doi:10.1037/hea0001188>). However, they can also be used in other scenarios.
Last updated
regression-models
5.81 score 6 dependents 18 scripts 914 downloads
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.
Last updated
bootstrappingconfidence-intervaleffect-sizesmoderationregressionstandardizationstandardized-moderation
5.67 score 1 stars 52 scripts 346 downloadslavaan.printer - Helper Functions for Printing 'lavaan' Outputs
Helpers for customizing selected outputs from 'lavaan' by Rosseel (2012) <doi:10.18637/jss.v048.i02> and print them. The functions are intended to be used by package developers in their packages and so are not designed to be user-friendly. They are designed to be let developers customize the tables by other functions. Currently the parameter estimates tables of a fitted object are supported.
Last updated
lavaanstructural-equation-modeling
5.65 score 3 dependents 5 scripts 268 downloads
semhelpinghands - Helper Functions for Structural Equation Modeling
An assortment of helper functions for doing structural equation modeling, mainly by 'lavaan' for now. Most of them are time-saving functions for common tasks in doing structural equation modeling and reading the output. This package is not for functions that implement advanced statistical procedures. It is a light-weight package for simple functions that do simple tasks conveniently, with as few dependencies as possible.
Last updated
bootstrappinglavaanstructural-equation-modeling
5.12 score 1 stars 33 scripts 492 downloads
betaselectr - Betas-Select in Structural Equation Models and Linear Models
It computes betas-select, coefficients after standardization in structural equation models and regression models, standardizing only selected variables. Supports models with moderation, with product terms formed after standardization. It also offers confidence intervals that account for standardization, including bootstrap confidence intervals as proposed by Cheung et al. (2022) <doi:10.1037/hea0001188>. An introduction to the package can be found in Sun et al. (2026) <doi:10.1080/00273171.2026.2672692>.
Last updated
bootstrappingconfidence-intervalsgeneralized-linear-modelslavaanlogistic-regressionregressionsemstandardizationstructural-equation-modeling
4.95 score 1 stars 9 scripts 324 downloads
modelbpp - Model BIC Posterior Probability
Fits the neighboring models of a fitted structural equation model and assesses the model uncertainty of the fitted model based on BIC posterior probabilities (BPP), using the method presented in Wu, Cheung, and Leung (2020) <doi:10.1080/00273171.2019.1574546>. See Pesigan, Cheung, Wu, Chang, and Leung (2026) <doi:10.3758/s13428-025-02921-x> for an introduction to the package.
Last updated
lavaanmodel-comparisonmodel-comparison-and-selectionmodel-selectionstructural-equation-modeling
4.70 score 3 scripts 361 downloads
semlrtp - Likelihood Ratio Test P-Values for Structural Equation Models
Computes likelihood ratio test (LRT) p-values for free parameters in a structural equation model. Currently supports models fitted by the 'lavaan' package by Rosseel (2012) <doi:10.18637/jss.v048.i02>.
Last updated
hypothesis-testinglavaanstructural-equation-modeling
4.08 score 24 scripts 372 downloadsmanymome.table - Publication-Ready Tables for 'manymome' Results
Converts results from the 'manymome' package, presented in Cheung and Cheung (2024) <doi:10.3758/s13428-023-02224-z>, to publication-ready tables.
Last updated
lavaanmanymomemediationmoderated-mediationmoderationregressionsemstructural-equation-modeling
3.70 score 3 scripts 202 downloads