I am attempting to better understand how to use simulation techniques when working with linear regression models. For context, if I have a model that, say, predicts the margin of victory between two opponents, how can I simulate the contest. While the regression model using predict()
in R give me the fitted value, I understand there is still variance in this result -- a prediction interval.
How can I simulate the actual result, using the model, to find how often a player scores more than his opponent?
My initial thinking: finding the prediction interval based on the model. Then, treating the interval as a uniform distribution between the lower and upper bound and then selecting random values within that distribution as the final outcomes. This feels wrong. Help is much appreciated and if you do know R any code would be further appreciated.