Setting weights for robustfit command.
3 views (last 30 days)
Show older comments
I'd like to do a weighted least squares regression using the "robustfit" command, but I want to create my own variable of weights and not use one of the set weighting functions. Is this possible?
Thanks in advance, Janis
0 Comments
Accepted Answer
Tom Lane
on 11 Jan 2013
If you want to specify the weights yourself, I recommend using glmfit or LinearModel instead of robustfit.
0 Comments
More Answers (0)
See Also
Categories
Find more on Linear and Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!