categorical_tests_in_linear_regression
Differences
This shows you the differences between two versions of the page.
| categorical_tests_in_linear_regression [2022/10/15 18:48] – created hkimscil | categorical_tests_in_linear_regression [2022/10/15 19:35] (current) – hkimscil | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{: | + | {{: |
| + | < | ||
| + | m <- mean(mtcars$mpg) | ||
| + | m <- round(m, | ||
| + | leg.m <- paste(" | ||
| + | k <- tapply(mtcars$mpg, | ||
| + | k <- round(k, | ||
| + | leg.1 <- paste(" | ||
| + | leg.2 <- paste(" | ||
| + | |||
| + | plot(x=(mtcars$am), | ||
| + | abline(h=mean(mtcars$mpg), | ||
| + | abline(h=k[1], | ||
| + | abline(h=k[2], | ||
| + | text(x = .2, y = 18, leg.1) | ||
| + | text(x = .8, y = 25, leg.2) | ||
| + | text(x = .5, y = 21, leg.m) | ||
| + | </ | ||
| + | |||
| + | |||
categorical_tests_in_linear_regression.1665827295.txt.gz · Last modified: by hkimscil
