基金项目

基于Python语言的中介与调节效应运演

展开
  • 鞍山师范学院物理科学与技术学院

网络出版日期: 2024-01-24

Operation of Mediation and Regulation Effect Based on Python Language

Expand
  • Anshan Normal University

Online published: 2024-01-24

摘要

利用Python语言的Pandas库和Statsmodels 库实现了中介和调节效应分析过程,从而明晰了中介和调节效应基本 原理和分析步骤。具体推演了中介检验中的替代Sobel检验的Bootstrap方法和调节检验中的加权最小二乘法分组回归实现, 展示了常用的两因素方差分析法和有交互作用的多元回归分析法。

本文引用格式

钟志强 高 红 . 基于Python语言的中介与调节效应运演[J]. 电脑与电信, 2023 , 1(5) : 45 . DOI: 10.15966/j.cnki.dnydx.2023.05.013

Abstract

Based on the operation of mediation and regulation effect in Python language, the analysis process of mediation and regulation effect is realized by using Pandas library and Statsmodels library of Python language, and the basic principles and analysis steps of mediation and regulation effect are clarified. It mainly demonstrates the bootstrap method instead of Sobel test in intermediary test, the realization of grouping regression by weighted least square method in adjustment test, as well as the commonly used two factor analysis of variance and interactive multiple regression analysis.
Options
文章导航

/