~/ learn/ afm-112/ cards/ Estimate, Multiple R-squared, Residual standard error
1 of 10

In R, type the line that fits sales on ad spend from the stores frame and saves the model as fit.

In R, type the line that fits sales on ad spend from the stores frame and saves the model as fit.

Answer

fit <- lm(sales ~ adspend, data = stores)

Response ~ explanatory, data = the frame. fit holds the coefficients, the residuals and everything summary() prints.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/fc53356f-a52c-4ab9-964c-2ba0b50c284b/flashcard utf-8 LF