【R】如何比较两个回归方程中系数的显著差异?

组间系数差异的检验方法- 引入交叉项(Chow 检验)

构建一个带交互效应的回归,如果交互项不显著,则说明两个回归系数是无显著区别的。
When two slope coefficients are different, a one-unit change in a predictor is associated with different mean changes in the response. In the scatterplot below, it appears that a one-unit increase in Input is associated with a greater increase in Output in Condition B than in Condition A. We can see that the slopes look different, but we want to be sure this difference is statistically significant.
在这里插入图片描述
我们需要确定 Input 的系数是否取决于 Condition。在统计学中,当我们说一个变量的影响取决于另一个变量时,这是一种交互效应。我们需要做的就是包含 Input*Condition 的交互项

#以普通线性回归为例,分别拟合了 fine 和 coarse 的降水和植被指数ndvi 
fit_fine <- lm(NDVI_2018~pre_2018, data = sd2018_fine)
summary(fit_fine)

fit_coarse <- lm(NDVI_2018~pre_2018, data = sd2018_coarse)
summary(fit_coarse)
#比较交互效应,在回归中加入 Sepal.Length*Species 的交互项
fit_all <- lm(NDVI_2018~pre_2018*Soil, data = sd2018_all)
summary(fit_all)

在这里插入图片描述

https://blog.minitab.com/en/adventures-in-statistics-2/how-to-compare-regression-lines-between-different-models
https://www.zhihu.com/question/279103129/answer/2036840516
https://www.stata.com/support/faqs/statistics/computing-chow-statistic/index.html
https://mp.weixin.qq.com/s/CzBfLwubLcSvkmhyPLHZ0A

  • 4
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值