Stepwise regression with no Constant

조회 수: 6 (최근 30일)
Mark
Mark 2011년 5월 30일
댓글: Lev Prislan 2016년 8월 24일
Matlab includes a constant as a default ..... is it possible to do a stepwise regression in Matlab without a constant? Thanks

답변 (1개)

Oleg Komarov
Oleg Komarov 2011년 5월 31일
It doesn't say so neither in stepwisefit nor in stepwise.
An example:
load hald
stepwise(ingredients,heat)
  댓글 수: 1
Lev Prislan
Lev Prislan 2016년 8월 24일
It does say: "stepwise automatically includes a constant term in all models. Do not enter a column of 1s directly into X."

댓글을 달려면 로그인하십시오.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by