October 2017
Beginner to intermediate
236 pages
7h 38m
English
The steps to building a linear regression model using the rxFastLinear() function from the RevoScaleR library are as follows:
Here's the exact R code to implement the preceding steps:
setwd("D:/AllSync/Drive/Book-3/codeBundle/ch9") xdfFile <- file.path(getwd(), "USAirlines2016.xdf") linMod <- rxFastLinear(ARR_DELAY~DEP_DELAY+ORIGIN+DEST+DAY_OF_WEEK, type = "regression", data = xdfFile)