Setting weights for robustfit command.

조회 수: 8 (최근 30일)
Janis
Janis 2013년 1월 10일
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

채택된 답변

Tom Lane
Tom Lane 2013년 1월 11일
If you want to specify the weights yourself, I recommend using glmfit or LinearModel instead of robustfit.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multiple Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by