regression
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
regression [2023/05/24 08:53] – [Slope test] hkimscil | regression [2023/05/24 08:53] (current) – [Slope test] hkimscil | ||
---|---|---|---|
Line 768: | Line 768: | ||
따라서 t = b / se = 3.655631 | 따라서 t = b / se = 3.655631 | ||
- | < | ||
- | y <- c(1, 1, 2, 2, 4) | ||
- | mody <- lm(y ~ x) | ||
- | </ | ||
- | < | ||
- | > x <- c(1, 2, 3, 4, 5) | ||
- | > y <- c(1, 1, 2, 2, 4) | ||
- | > mody <- lm(y ~ x) | ||
- | > summary(mody) | ||
- | |||
- | Call: | ||
- | lm(formula = y ~ x) | ||
- | |||
- | Residuals: | ||
- | | ||
- | | ||
- | |||
- | Coefficients: | ||
- | Estimate Std. Error t value Pr(> | ||
- | (Intercept) | ||
- | x | ||
- | --- | ||
- | Signif. codes: | ||
- | |||
- | Residual standard error: 0.6055 on 3 degrees of freedom | ||
- | Multiple R-squared: | ||
- | F-statistic: | ||
- | |||
- | > | ||
- | </ | ||
====== E.g., 4. Simple regression ====== | ====== E.g., 4. Simple regression ====== | ||
Another example of simple regression: from {{: | Another example of simple regression: from {{: |
regression.txt · Last modified: 2023/05/24 08:53 by hkimscil