Created
June 20, 2013 22:04
-
-
Save grantbrown/5827125 to your computer and use it in GitHub Desktop.
Brief template for Homework 5 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
# Change my working directory to wherever the data file is stored | |
setwd("/home/grantbrown/dev/171-162-Materials/Section4/Homework5/") | |
CancerData = read.csv("Homework5.csv", head = TRUE) | |
# Perform the regression: | |
MyMLR = lm(AllCancerMortalityCrude ~ GraduationRate + HospitalBeds + PctFarmCorn, data = CancerData) | |
# Take a look at the regression summary: | |
summary(MyMLR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment