fitting a linear model with constraints

3 views (last 30 days)
cgo
cgo on 22 Oct 2018
Commented: cgo on 22 Oct 2018
I am trying to use fitlm, but by using nonnegative least squares. I am aware of lsqnonneg, but I am interested in looking at the p-values upon fitting too.
Is there a fitlm for nonnegative least squares?

Answers (1)

madhan ravi
madhan ravi on 22 Oct 2018
See lsqlin
  1 Comment
cgo
cgo on 22 Oct 2018
I don't see the pvalues. Can you point where it is?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!