Simulate responses with random noise for linear regression model
For predictions without random noise, use predict
or feval
. These two functions give the same
predictions.
predict
accepts a single input argument containing
all predictor variables, and gives confidence intervals on its
predictions.
feval
accepts multiple input arguments with one input
for each predictor variable.