Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Kia Teymourian committed Jan 16, 2019
1 parent 866afbf commit 2413640
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Module-3-Example-1.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ cor(bodymass, height)
cor(height, bodymass)

# A simple linear regression
m<-lm(height ~ bodymass)

lm(height ~ bodymass)

# A line on the past plot
# abline(98.0054, 0.9528)
abline(98.0054, 0.9528)


# better would be to do this.
# A better approach is to use variables and pass data to other functions
m <- lm(height ~ bodymass)

# better would be to do this - No hard coding of data values.
abline(m)


0 comments on commit 2413640

Please sign in to comment.