hello,
i want to do some regressions on categorical variables, both the dependend and independend variables are categorical.
can i just use the regress command. and can the outcomes be interpreted the same (so if the dependend variable rises with 1 the independend variable rises with the coëfficiënt)
can i make logaritmic functions of these variables, and can i interpreted them the same (so if the dependend variable rises with 1 percent, the independend variable rises with the coëfficiënt as a percentage)
the variables are:
ch11e004 (about hapiness) with 5 categories (very sad, sad, normal, happy, very happy)
and cw12e138 (about working hours) with 4 categories ( works shifts, works sometimes outside office hours, works regularly outside office hours, never works outside office hours)
or cw12e140 (about working hours) with 4 categories ( works never in weekend, works sometimes in weekend, works every few weeks in weekends, works almost alltime in weekend) this variable is a little bit more useful i guess because it is ordinal?
i used egen newvar = group(cw12e140/138/ch11e004) to make them numeric, but they still are categorical
i know how to do normal regressions with continious variables, but i don't what to do with these categories. and can i make numbers for cw12e138 because it can't be said if working shifts is "higher" than not working outside office hours or work a lot outside office hours?
thanks in advance for your tips and advice
kind regards Erwin
i want to do some regressions on categorical variables, both the dependend and independend variables are categorical.
can i just use the regress command. and can the outcomes be interpreted the same (so if the dependend variable rises with 1 the independend variable rises with the coëfficiënt)
can i make logaritmic functions of these variables, and can i interpreted them the same (so if the dependend variable rises with 1 percent, the independend variable rises with the coëfficiënt as a percentage)
the variables are:
ch11e004 (about hapiness) with 5 categories (very sad, sad, normal, happy, very happy)
and cw12e138 (about working hours) with 4 categories ( works shifts, works sometimes outside office hours, works regularly outside office hours, never works outside office hours)
or cw12e140 (about working hours) with 4 categories ( works never in weekend, works sometimes in weekend, works every few weeks in weekends, works almost alltime in weekend) this variable is a little bit more useful i guess because it is ordinal?
i used egen newvar = group(cw12e140/138/ch11e004) to make them numeric, but they still are categorical
i know how to do normal regressions with continious variables, but i don't what to do with these categories. and can i make numbers for cw12e138 because it can't be said if working shifts is "higher" than not working outside office hours or work a lot outside office hours?
thanks in advance for your tips and advice
kind regards Erwin
Comment