Constraints on Parameter Estimation
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to fit linear regression model and predict parameters without intercept. I have written my code as under;
tbl=table(yobs,x1,x2,x3);
mdl = fitlm(tbl,'yobs ~ x1 + x2 + x3 - 1')
but I am getting the estimates which are negative but in my model all parameters should be positive. LB>=0 and UB=inf. How to set these constraints while doing the prediction.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Nonlinear Regression in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!