Hi STATA,
I want to create a new variable (Age * Education levels). But the problem is that the age variable and education levels variable are categories, for example, the 'Age variable' has five age groups and the 'education levels variable' has five levels of education.
How can I multiply two category variables by another category variable to create a new variable?
Also, how can I multiply category variables by discrete (fractions) variables? for example, (age × female’s earnings share of household income(fractions) is not run because the female’s earnings share is a nonintegral variable << STATA commend.
Also, I have run 2010 and 2016, and 2016 = 1, 2010 = 0. (the year variable is dummy variable)
When I tried to run these: (never married(dummy variable) × 2016=1), (age(categories) × 2016=1), (age(categories) × level of education (categories)× 2016=1), (age(categories) × level of household income (fractions) × 2016=1), STATA would not run because of too many columns, and rows.
Could you please assist me?
Thank you,
I want to create a new variable (Age * Education levels). But the problem is that the age variable and education levels variable are categories, for example, the 'Age variable' has five age groups and the 'education levels variable' has five levels of education.
How can I multiply two category variables by another category variable to create a new variable?
Also, how can I multiply category variables by discrete (fractions) variables? for example, (age × female’s earnings share of household income(fractions) is not run because the female’s earnings share is a nonintegral variable << STATA commend.
Also, I have run 2010 and 2016, and 2016 = 1, 2010 = 0. (the year variable is dummy variable)
When I tried to run these: (never married(dummy variable) × 2016=1), (age(categories) × 2016=1), (age(categories) × level of education (categories)× 2016=1), (age(categories) × level of household income (fractions) × 2016=1), STATA would not run because of too many columns, and rows.
Could you please assist me?
Thank you,
Comment