r:multiple_regression
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
r:multiple_regression [2019/11/08 09:28] – hkimscil | r:multiple_regression [2019/11/08 10:59] – [Prediction] hkimscil | ||
---|---|---|---|
Line 253: | Line 253: | ||
coefficients(lm.stock) | coefficients(lm.stock) | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | [1] " | ||
+ | [6] " | ||
+ | [11] " | ||
+ | |||
< | < | ||
Line 512: | Line 518: | ||
</ | </ | ||
+ | Alternatively, | ||
+ | < | ||
+ | > install.packages(" | ||
+ | > library(lmtest) | ||
+ | > lrtest(lm.stock.int, | ||
+ | Likelihood ratio test | ||
+ | |||
+ | Model 1: Stock_Index_Price ~ Interest_Rate | ||
+ | Model 2: Stock_Index_Price ~ Interest_Rate + Unemployment_Rate | ||
+ | #Df LogLik Df Chisq Pr(> | ||
+ | 1 3 -136.94 | ||
+ | 2 4 -134.61 | ||
+ | --- | ||
+ | Signif. codes: | ||
+ | > </ | ||
r/multiple_regression.txt · Last modified: 2023/10/19 08:23 by hkimscil