Stepwise regression with no Constant

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 日

0 投票

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."

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2011 年 5 月 30 日

コメント済み:

2016 年 8 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by