Hi,
I am running into a slight problem. I want to add variables together. There is a question in PRAMS that asks where the mother received breastfeeding information from and then lists 5+ options (doctor, family, support group, etc.). In the codebook, each option is its own variable. I was wondering what the best way to "add" each possibility of groupings is. Right now, all I can think of is doing "if doctor==1 & nurse==1 | doctor==1 7 family==1 ..." (which could take a very long time because I want to have an option for 1-7 sources of information). Open to any suggestions that would make coding this Breastfeeding Information variable better.
I am running into a slight problem. I want to add variables together. There is a question in PRAMS that asks where the mother received breastfeeding information from and then lists 5+ options (doctor, family, support group, etc.). In the codebook, each option is its own variable. I was wondering what the best way to "add" each possibility of groupings is. Right now, all I can think of is doing "if doctor==1 & nurse==1 | doctor==1 7 family==1 ..." (which could take a very long time because I want to have an option for 1-7 sources of information). Open to any suggestions that would make coding this Breastfeeding Information variable better.
Comment