Skip to content

Instantly share code, notes, and snippets.

@grantbrown
Created June 20, 2013 22:04
Show Gist options
  • Save grantbrown/5827125 to your computer and use it in GitHub Desktop.
Save grantbrown/5827125 to your computer and use it in GitHub Desktop.
Brief template for Homework 5 code
# 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