From f83c877393f86779719b6a9f7eb3ded46007abdd Mon Sep 17 00:00:00 2001 From: graySquirrel Date: Thu, 7 Dec 2017 11:38:14 -0500 Subject: [PATCH] child and parent were in wrong order in example code (was not executed, but included for student) --- 07_RegressionModels/01_01_introduction/index.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07_RegressionModels/01_01_introduction/index.Rmd b/07_RegressionModels/01_01_introduction/index.Rmd index 1fadce87c..e0331b0a7 100644 --- a/07_RegressionModels/01_01_introduction/index.Rmd +++ b/07_RegressionModels/01_01_introduction/index.Rmd @@ -170,7 +170,7 @@ myPlot <- function(beta){ y <- galton$child - mean(galton$child) x <- galton$parent - mean(galton$parent) freqData <- as.data.frame(table(x, y)) - names(freqData) <- c("child", "parent", "freq") + names(freqData) <- c("parent", "child", "freq") plot( as.numeric(as.vector(freqData$parent)), as.numeric(as.vector(freqData$child)),