multiple_regression_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
multiple_regression_examples [2017/05/31 09:58] – [Regression Diagnostics] hkimscil | multiple_regression_examples [2018/11/09 12:00] – hkimscil | ||
---|---|---|---|
Line 110: | Line 110: | ||
x3 work ethic | x3 work ethic | ||
</ | </ | ||
+ | from the above output: | ||
+ | | x | zero-order cor | part cor | squared zero-order cor | squared part cor | shared square cor | | ||
+ | | x1 | .764 | .588 | 0.583696 | ||
+ | | x2 | .769 | .594 | 0.591361 | ||
+ | note that the values of two raws at the last column are similar. The portion is the shared effects from both x1 and x2. | ||
+ | |||
$$ \hat{Y_{i}} = 101.222 + 1.000X1_{i} + 1.071X2_{i} $$ | $$ \hat{Y_{i}} = 101.222 + 1.000X1_{i} + 1.071X2_{i} $$ | ||
$$ \hat{Y_{i}} = 101.222 + 1.000 \ \text{intell. ability}_{i} + 1.071 \ \text{work ethic}_{i} $$ | $$ \hat{Y_{i}} = 101.222 + 1.000 \ \text{intell. ability}_{i} + 1.071 \ \text{work ethic}_{i} $$ | ||
Line 538: | Line 544: | ||
{{: | {{: | ||
+ | ===== Model objects ===== | ||
+ | < | ||
+ | [1] " | ||
+ | [6] " | ||
+ | [11] " | ||
+ | </ | ||
+ | < | ||
+ | (Intercept) | ||
+ | | ||
+ | > model5$coefficients | ||
+ | (Intercept) | ||
+ | | ||
+ | > model5[[1]] | ||
+ | (Intercept) | ||
+ | | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | | ||
+ | 0.56888134 | ||
+ | Colorado | ||
+ | 0.95645816 | ||
+ | Hawaii | ||
+ | 1.50683146 | ||
+ | Kansas | ||
+ | 0.67648037 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | New Mexico | ||
+ | 0.28880945 | ||
+ | Oklahoma | ||
+ | 0.26139958 | ||
+ | South Dakota | ||
+ | 0.06839119 | ||
+ | Virginia | ||
+ | | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | > sort(model5$resid) | ||
+ | Maine South Carolina | ||
+ | | ||
+ | Pennsylvania | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | California | ||
+ | | ||
+ | | ||
+ | | ||
+ | Oklahoma | ||
+ | 0.26139958 | ||
+ | | ||
+ | 0.47004324 | ||
+ | Kansas | ||
+ | 0.67648037 | ||
+ | North Dakota | ||
+ | 0.90350550 | ||
+ | | ||
+ | </ |
multiple_regression_examples.txt · Last modified: 2023/10/21 13:26 by hkimscil