Created
September 17, 2012 01:28
-
-
Save johnmyleswhite/3735101 to your computer and use it in GitHub Desktop.
Toy Regression w/ Errors
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
df <- data.frame(Fahrenheit = c(212, 102, 32), | |
Celsius = c(100, 50, 0)) | |
lm.fit <- lm(Fahrenheit ~ Celsius, data = df) | |
summary(lm.fit) | |
predict(lm.fit, data.frame(Celsius = 40)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment