multiple_regression
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
multiple_regression [2019/05/21 22:41] – [Why overall model is significant while IVs are not?] hkimscil | multiple_regression [2019/05/23 10:20] – [Why overall model is significant while IVs are not?] hkimscil | ||
---|---|---|---|
Line 330: | Line 330: | ||
====== Why overall model is significant while IVs are not? ====== | ====== Why overall model is significant while IVs are not? ====== | ||
see https:// | see https:// | ||
+ | |||
+ | < | ||
+ | RSS = 3:10 #Right shoe size | ||
+ | LSS = rnorm(RSS, RSS, 0.1) #Left shoe size - similar to RSS | ||
+ | cor(LSS, RSS) # | ||
+ | |||
+ | weights = 120 + rnorm(RSS, 10*RSS, 10) | ||
+ | |||
+ | ##Fit a joint model | ||
+ | m = lm(weights ~ LSS + RSS) | ||
+ | |||
+ | ##F-value is very small, but neither LSS or RSS are significant | ||
+ | summary(m) | ||
+ | </ | ||
+ | |||
< | < |
multiple_regression.txt · Last modified: 2024/06/12 08:36 by hkimscil