Skip to content
View sfcheung's full-sized avatar

Highlights

  • Pro

Organizations

@blender4stat @blogonresearch
Block or Report

Block or report sfcheung

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this userโ€™s behavior. Learn more about reporting abuse.

Report abuse
sfcheung/README.md

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. ๐Ÿ™๐Ÿ™‚

Pinned

  1. manymome manymome Public

    Moderation, mediation, and moderated mediation in structural equation modeling and multiple regression

    R 1 1

  2. semlbci semlbci Public

    Find the likelihood based confidence intervals for parameters in structural equation modeling

    R 1

  3. stdmod stdmod Public

    Functions related to standardized moderation effect

    R

  4. semfindr semfindr Public

    A find(e)r of influential cases and outliers in SEM

    R 1

  5. semhelpinghands semhelpinghands Public

    An R package to store any handy SEM-related functions that I use

    R

  6. semptools semptools Public

    Helper functions for customizing plots by semPlot::semPaths

    R 3 1