Why are prediction intervals on fitlm NaN

2 views (last 30 days)
Albin
Albin on 23 Oct 2015
Using
mdl = fitlm(x_mlr,y,'quadratic'); [y,pi] = predict(mdl,x,'Prediction','observation');
results in perfectly fitting model but in a pi matrix containing NaNs only. Any suggestion why this is the case. It works fine for:
mdl = fitlm(x_mlr,y,'linear');
Thank you in advance

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!