How to calculate regression with dummy variables?
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi, I am trying to use 2nd degree polynomial regression with dummy variables. Which function should I use? Thanks for any help!
댓글 수: 0
채택된 답변
the cyclist
2018년 7월 17일
편집: the cyclist
2018년 7월 17일
댓글 수: 2
the cyclist
2018년 7월 17일
편집: the cyclist
2018년 7월 17일
Do you mean that you have polynomials for your independent variables, like
y = a + b*x + c*x^2
That is a linear model. "Linear" refers to the coefficients, not the powers (or whatever) of the variables.
On the other hand, something like
y = a + x^b
is nonlinear in the coefficient. Yes, you would need fitnlm for something like that.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!