Exercise

# Construct a linear model

Create some linear model to predict arrival delays.

Instructions

**100 XP**

Use **rxLinMod** to create a simple linear model

The structure to a call to **rxLinMod()** is very similar to the **lm()** function in the **stats** package. The syntax is:
**rxLinMod(formula, data, …)**

**formula**- The model specification.**data**- The data in which you want to search for variables in**formula**.**…**- Additional arguments

Using the data set **myAirlineXdf**, go ahead and start by creating a simple linear model predicting arrival delay by day of the week.