一千萬個為什麽

搜索

回歸:如何解釋不同的線性關系?

我有三個數據集,我們稱之為 XY1Y2 。散點圖由它們產生, Y1Y2 共享它們相同的 X 數據集(或支持)。

My question: if the two regression lines are different in both slope and intercept, is there a way to evaluate if the X dataset has more influence on Y1 or Y2?

Based on the image below, this is to say - which Y dataset is more influenced by the X dataset?

  • 藍色斜率(Y1): - 112
  • 紅坡(Y2): - 90

修改

It is visible that an increase in X produces a decrease in both Y1 and Y2. My question could be interpreted as follows: which Y dataset decreases the most, given the increase in X? Is the slope everything I need?

Image: enter image description here

最佳答案

您正在尋找的是協方差分析( ANCOVA )分析,用於比較兩個通過測試分類因子對因變量(y-var)的影響,同時控制連續共變量(x-var)的影響,或更多的回歸線。

Here is an example for carrying out the ANCOVA analysis using R.

轉載註明原文: 回歸:如何解釋不同的線性關系?