Skip to content

sfcheung/sfcheung

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

About Me

I am Shu Fai. I like helping people, me included, to do analysis in psychological studies. These are the R packages and other tools I am working on:

Structural Equation Modelling (SEM)

manymome: Moderation (mo), mediation (me), and moderated mediation (mome) in "many" models. In colaboration with S.-H. Cheung (Cheung & Cheung, 2023). Our goals: Do things fast and do them right. This package is for computing indirect effects and conditional indirect effects fast and easily, with as little coding as possible. (A quick introduction)

semlbci: Likelihood-based confidence interval (lbci) in sem. LBCI is a useful but underused method to form CI in SEM. I hope more researchers can use this method (Cheung & Pesigan, 2023). (Get started)

semfindr: A finder (hence findr) for finding influential cases in an SEM analysis, in collaboration with Mark H. C. Lai. We should always see if there are any influential cases in SEM but this is not easy, even for me as I have projects with large samples with missing data. We hope this package, with efficiency and easiness-to-use in mind, can help more researchers to do this. (No, outliers are not necessarily influential cases, and influential cases are not necessarily outiers. Checking for outliers is not enough.) (How to use it)

semptools: Helpers for customizing an SEM figure generated by semPlot::semPaths(), in collaboration with Mark H. C. Lai. It helped me a lot to generate publication-ready and teaching-ready SEM figures quickly. (A quick start guide)

semhelpinghands: Helper functions I wrote to help myself to do some common tasks in SEM efficiently. See this page for an overview.

Multiple Regression

stdmod: Started out as a package for doing standardized moderation right (many did it wrong) in linear regression but now a tool for doing standardization right in linear regression, including moderated regression (Cheung, Cheung, Lau, Hui, & Vong, 2022). The usual method for confidence intervals is wrong and I hope this package (among others) can help people to form better CIs. it supports bootstrap confidence intervals. Illustrations can be found here for moderated regression and here for a regression model with categorical predictors.

manymome: Again? Yes, because it can also be used for regression models 😄! Moderation (mo), mediation (me), and moderated mediation (mome) in "many" regression models, fitted by several one-outcome regression models using lm(). In colaboration with S.-H. Cheung (Cheung & Cheung, 2023). Our goal: Do things fast, and do them right. This package is for computing indirect effects and conditional indirect effects fast and easy, with as little coding as possible. Illustrations can be found in this page for mediation and this page for moderated mediation.

SPSS

DIY Bootstrapping in SPSS: For forming nonparametric bootstrap confidence intervals for literally anything we can see in the SPSS output (Cheung, Pesigan, & Vong, 2023). Flexibility comes at a cost ... some coding is inevitable. But I meant it: Anything we can see, including standardized regression coefficients ("betas") and adjusted R-squares, reliability coefficients, and many other statistics. Video demonstration can be found here.

Hope you find the tools useful. (I certainly do find the tools useful because I usually develop tools that I myself also want to use in my research. 😊)

I would love to see bug reports and suggestions. Feel free to raise them in the corresponding GitHub issues pages. Thanks. 🙏🙂

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published