[SOLVED] Factors in regression
Posted: Fri Sep 22, 2017 5:35 pm
Hi,
Thanks again for this piece of programming art.
I thought that defining a variable as Nominal would treat the variable as factor (both if character or numerical) and would be used as such in linear regression, but is not the case. Predictors are only treated as continuous, not categorical.
I think treating Nominal variables as factors would be a plus and should not be too complicated.
More difficult would be to allow for fitting interactions among variables in the linear regression menu. Now we can do it pre-calculating the product terms as new variables with the new computed variable option.
Victor
Thanks again for this piece of programming art.
I thought that defining a variable as Nominal would treat the variable as factor (both if character or numerical) and would be used as such in linear regression, but is not the case. Predictors are only treated as continuous, not categorical.
I think treating Nominal variables as factors would be a plus and should not be too complicated.
More difficult would be to allow for fitting interactions among variables in the linear regression menu. Now we can do it pre-calculating the product terms as new variables with the new computed variable option.
Victor