I have a group of food source variables: 'foodgiven_free', 'foodpantry', 'grocery', 'conveniencestore', etc. and a text entry response variable 'otherCFAR_text'. There are some text response items that don't fall into the "other CFAR" category, but rather fall into the other food source variables like 'foodpantry'. I'm wondering how to add the responses from the 'otherCFAR_text' variable to the other food source variables. I've tried using the egen function, but can't seem to figure out the correct syntax.
.egen float foodgiven_free_new = rowtotal(foodgiven_free) otherCFAR_text == 2 | otherCFAR_text == 23
Other potentially helpful information: The food source variables have 7-pt likert scale response options.
First time posting, so please let me know if I'm missing other helpful information
.egen float foodgiven_free_new = rowtotal(foodgiven_free) otherCFAR_text == 2 | otherCFAR_text == 23
Other potentially helpful information: The food source variables have 7-pt likert scale response options.
First time posting, so please let me know if I'm missing other helpful information

Comment