# Installation

CRAN Stable Version

install.packages('psycModel')

devtools::install_github('jasonmoy28/psycModel')

## Key Features

A beginner-friendly R package for statistical analysis in social science (intermediate & advanced R users should also find it useful)
Tired of manually writing all variables in a model? You can use dplyr::select() syntax for all models
Produce publication-ready tables and figures (e.g., descriptive table)
Fitting models, plotting, checking goodness of fit, and model assumption violations all in one place.
Beautiful and easy-to-read output. Check out this example now.
In the backend, this package uses reliable R packages (e.g., lavaan, lme4, psych) to handle all statistical analysis.

## Supported Models

Regression models:
* Linear regression (i.e., support ANOVA, ANCOVA) & generalized linear regression
* Linear mixed effect model (i.e., HLM, MLM) & generalized linear mixed effect model.

Structure Equation Modeling:
* Exploratory & confirmatory factor analysis
* Measurement invariance (MGCFA approach)
* Mediation analysis (SEM approach)

Other:
* Descriptive statistics * Correlation (e.g., pearson, polychoric, tetrachoric, spearman), * Reliability analysis

Note: If you like this package, please considering give it a star on GitHub. I would really appreciate that.

## Credit

Authors: Jason Moy

Citation: Moy, J. H. (2021). psycModel: Integrated Toolkit for Psychological Analysis and Modeling in R. CRAN. https://cran.r-project.org/package=psycModel.

Logo Design: Danlin Liu

## Upcoming Features

1. Support bootstrapping and robust standard error for relevant models
2. Support moderated mediation analysis and multilevel mediation analysis (currently support multilevel with level-1 variable only)
3. Support latent class and profile analysis (possible latent transition analysis)
4. Support generalized linear regression
5. Support polynomial regression
6. Support outputting table to MS word (don’t know how to implement yet)

Note: A more exhaustive list is available here. If you have any feature request, please feel free to let me know by writing a new GitHub issue.

## Disclaimer:

This package was built by standing on the shoulders of giants with special thanks to researchers and developers of lavaan, lme4, lmerTest, nlme, performance, parameters, psych, and of course, all of the tidyverse packages. I hope this package can help someone in the same way that these packages has helped me.