Skip to content

Commit 3487a2a

Browse files
committed
fixing multicollinearity example from inches to feet
1 parent 1784ada commit 3487a2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

regression2.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ Since the two people are each slightly inaccurate, the two measurements might
692692
not agree exactly, but they are very strongly linearly related to each other,
693693
as shown in Figure \@ref(fig:08-lm-multicol).
694694

695-
```{r 08-lm-multicol, fig.height = 3.5, fig.width = 4.5, warning = FALSE, echo = FALSE, fig.cap = "Scatter plot of house size (in square inches) versus house size (in square feet)."}
695+
```{r 08-lm-multicol, fig.height = 3.5, fig.width = 4.5, warning = FALSE, echo = FALSE, fig.cap = "Scatter plot of house size (in square feet) measured by person 1 versus house size (in square feet) measured by person 2."}
696696
sacramento_train <- sacramento_train |>
697697
mutate(sqft1 = sqft + 100 * sample(1000000,
698698
size=nrow(sacramento_train),
@@ -706,8 +706,8 @@ sacramento_train <- sacramento_train |>
706706
707707
lm_plot_multicol_1 <- ggplot(sacramento_train) +
708708
geom_point(aes(x = sqft, y = sqft1), alpha=0.4)+
709-
xlab("House size (square feet)") +
710-
ylab("House size (square inches)")
709+
xlab("House size 1 (square feet)") +
710+
ylab("House size 2 (square feet)")
711711
lm_plot_multicol_1
712712
```
713713

0 commit comments

Comments
 (0)