필터 지우기
필터 지우기

Order of Coefficients in glmfit

조회 수: 3 (최근 30일)
Ted Simon
Ted Simon 2011년 10월 12일
I've been using glmfit to do a normal regression with 7-8 predictors. syntax is [b, dev, stats] = glmfit(X, Y, 'normal','link','identity');
The equation would be Y = B0 + B1*X1 + B2*X2 + ... B7*X7 + B8*X8 What is the order of coeffs in b or in stats.beta? I assume it is B0, B1, B2, ... B7, B8.
Is this correct?
Thanks.

채택된 답변

Wayne King
Wayne King 2011년 10월 12일
Hi Ted, that is correct. If you input an NxP predictor matrix, you will get a beta vector that is P+1 in length, the extra term (the first term) is the beta0 term.
Note the default behavior is to exclude the column vector of 1s from the predictor matrix. glmfit adds that.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by