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 | ||
regression [2019/05/20 08:17] – [E.g., 2. Simple regression] hkimscil | regression [2019/05/20 08:50] – [e.g. Simple Regression] hkimscil | ||
---|---|---|---|
Line 594: | Line 594: | ||
< | < | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | > summary(mod) | ||
+ | |||
+ | Call: | ||
+ | lm(formula = Y ~ X, data = datavar) | ||
+ | |||
+ | Residuals: | ||
+ | Min 1Q Median | ||
+ | -250.22 -132.28 | ||
+ | |||
+ | Coefficients: | ||
+ | Estimate Std. Error t value Pr(> | ||
+ | (Intercept) | ||
+ | X | ||
+ | --- | ||
+ | Signif. codes: | ||
+ | |||
+ | Residual standard error: 170.5 on 10 degrees of freedom | ||
+ | Multiple R-squared: | ||
+ | F-statistic: | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | Analysis of Variance Table | ||
+ | |||
+ | Response: Y | ||
+ | Df Sum Sq Mean Sq F value | ||
+ | X 1 316874 | ||
+ | Residuals 10 290824 | ||
+ | --- | ||
+ | Signif. codes: | ||
+ | > </ | ||
+ | |||
+ | < | ||
+ | > ss_total <- var(datavar$Y)*11 | ||
+ | > round(ss_total) | ||
+ | [1] 607698 | ||
+ | > 316874 + 290824 | ||
+ | [1] 607698 | ||
+ | </ | ||
+ | <WRAP box help> | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
====== E.g., 3. Simple regression: Adjusted R squared & Slope test ====== | ====== E.g., 3. Simple regression: Adjusted R squared & Slope test ====== |
regression.txt · Last modified: 2023/05/24 08:53 by hkimscil