Mediation Analysis for Count Data (with R code)
Warning: Introduction This tutorial shows how to do mediation analysis for count data in R. Complete R code and examples are provided. There are two possible ways to consider count data. (1) You can just assume that the residuals are normally distributed. Then, you can just use the commonly used linear regression model. You can … Read more