Home >Web Front-end >Bootstrap Tutorial >How to see the bootstrap mediation effect
The Bootstrap method to evaluate the mediating effect includes: 1. Perform regression analysis to record the direct effect and indirect effect; 2. Split sampling and repeatedly calculate the mediating effect to construct a confidence interval; 3. Compare the confidence interval to determine whether the indirect effect is Significant, and assess how well it explains the total effect.
Bootstrap mediation effect evaluation method
The Bootstrap method is a statistical inference method that can be used to evaluate the mediation effect. The mediating effect means that an independent variable indirectly affects the dependent variable by affecting the mediating variable.
Steps:
1. Perform regression analysis
2. Split sampling
3. Calculate the mediation effect
4. Compare confidence intervals
Example:
Suppose we study the relationship between the independent variable (gender) and the dependent variable (salary), and consider the mediating variable (education level) .
According to the confidence interval, the indirect effect is significant and not zero, indicating that education level plays a mediating role in the impact of gender on wages. Furthermore, the confidence interval for the indirect effect is about one-third of the confidence interval for the total effect, which means that education level partially explains the effect of gender on wages.
The above is the detailed content of How to see the bootstrap mediation effect. For more information, please follow other related articles on the PHP Chinese website!