Machine Learning, Data Science, Regression, Week07.
(lm{stats}) in R, we can generate a linear model as follows: crimeData <- fread(“crime.csv”) filter(crimeData, population > 0) pop.fit = lm(ViolentCrimesPerPop ~ population, data=crimeData) summary(pop.fit) plot(ViolentCrimesPerPop ~ population, data=crimeData, main=”Population vs Crime”)