Term matrix and regression model formula
조회 수: 2 (최근 30일)
이전 댓글 표시
hey, am not sure about the way the regression model is formulated in the help file this model is proposed 'MPG ~ Acceleration + Weight + Acceleration:Weight + Weight^2' with this Term matrix T = [0 0 0;1 0 0;0 1 0;1 1 0;0 2 0] and this Linear regression model: y ~ 1 + x1*x2 + x2^2 Which I found strange compared to the terms Matrix but then I saw that '*' means also all lower order term and the same for ^ so that would be the same as y= 1+x1+x2+x1+x2 +x2^2
Is this correct?
regards,J
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!