Hi there, I am needing some assistance with adding interaction terms to stepwise regression. I am aware of the limitations of stepwise, but we are needing to conduct this analysis for an assignment. When I use the below code, I get an error saying 'interactions not allowed'. The interactions we have been instructed to use are a mixture of continuous*continuous and categorical*continuous.
xi: stepwise, pe(0.15) : regress icecreamsold (i.season) (i.year) (i.month) (i.holiday) (i.dayofweek) (i.weekday) (i.weathercat) (temp) (humidity) (windspeed) (i.year#c.temp) (i.weathercat#c.humidity) (humiditywindspeed) (sqtemp) (sqhumidity) sqwindspeed (i.year#c.sqtemp) (i.weathercat#c.sqhumidity)
Can anyone help me?
Thanks, Elise
xi: stepwise, pe(0.15) : regress icecreamsold (i.season) (i.year) (i.month) (i.holiday) (i.dayofweek) (i.weekday) (i.weathercat) (temp) (humidity) (windspeed) (i.year#c.temp) (i.weathercat#c.humidity) (humiditywindspeed) (sqtemp) (sqhumidity) sqwindspeed (i.year#c.sqtemp) (i.weathercat#c.sqhumidity)
Can anyone help me?
Thanks, Elise
Comment