Stepwise regression with no Constant

6 Ansichten (letzte 30 Tage)
Mark
Mark am 30 Mai 2011
Kommentiert: Lev Prislan am 24 Aug. 2016
Matlab includes a constant as a default ..... is it possible to do a stepwise regression in Matlab without a constant? Thanks

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by