Stepwise regression with no Constant

6 visualizaciones (últimos 30 días)
Mark
Mark el 30 de Mayo de 2011
Comentada: Lev Prislan el 24 de Ag. de 2016
Matlab includes a constant as a default ..... is it possible to do a stepwise regression in Matlab without a constant? Thanks

Respuestas (1)

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

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by