Created
September 27, 2012 19:56
-
-
Save jebyrnes/3796118 to your computer and use it in GitHub Desktop.
Martine's Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enthus <- read.csv("enthusiasm.csv", header = TRUE) | |
 | |
# Plot the data | |
plot ( Chapters ~ Enthusiasm, data = enthus + | |
type = "p", pch = 20 + | |
main ="Holy Homework!" + | |
xlab = "Enthusiam units (week number)", xlim = c (0,3) + ylab = "Number of chapters", ylim = c (0,11)) | |
# Fit regression line | |
abline (lm (Chapters ~ Enthusiasm, data = enthus)) | |
# get equation for limera regression, R-squared and p-value | |
summary(lm(Chapters ~ Enthusiasm, data = enthus)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment