R bloggers

Weekly R-Tips: Visualizing Predictions

FavoriteLoadingAdd to favorites

Lets say that we estimated a linear regression model on time series data with lagged predictors. The goal is to estimate sales as a function of inventory, search volume, and media spend from two months ago. After using the lm function to perform linear regression, we predict sales using values from two month ago. frmla <- sales ~ inventory +…
Original Post: Weekly R-Tips: Visualizing Predictions

Leave a Reply

Your email address will not be published. Required fields are marked *