Hi all, I have been trying to trouble shoot an issue with some variables, to no avail and hoping someone on this group can help me out.
I have several string variables in an excel file (str8, str13) where the information is stored as numerical options that corresponded with a choice option from a select all that apply question. See picture
There are a few issues I need to address for data management:
1. Remove the commas
2. Create new variable that is numerical or byte, so numbers can be labeled (e.g. 1 "awareness" 2 "education" etc) like a categorical variable (this would be a new variable).
3. Then, should I create new variables (wide format) for each of the 9 possible responses (Q shorterm) - seems like alot --
I would like to use the MRTAB function or something similar to assess a) which option was selected most frequently? b) were certain choices most often selected together?
For our analysis, we are seeking to answer if response choices were correlated with demographic characteristics and the frequency of each response option itself.
Steps 1 & 2 are the primary objectives (remove comma if needed) and create non-string variable so I can label 1 - 9 responses (many to one) ... which I cannot do while it is a string (and if I do it after I encode, it labels the observations with the label text, which is not correct).
Any assistance would be greatly appreciated! String variables and I are not getting along :-)
Thanks,
Ashlee
I have several string variables in an excel file (str8, str13) where the information is stored as numerical options that corresponded with a choice option from a select all that apply question. See picture
There are a few issues I need to address for data management:
1. Remove the commas
2. Create new variable that is numerical or byte, so numbers can be labeled (e.g. 1 "awareness" 2 "education" etc) like a categorical variable (this would be a new variable).
3. Then, should I create new variables (wide format) for each of the 9 possible responses (Q shorterm) - seems like alot --
I would like to use the MRTAB function or something similar to assess a) which option was selected most frequently? b) were certain choices most often selected together?
For our analysis, we are seeking to answer if response choices were correlated with demographic characteristics and the frequency of each response option itself.
Steps 1 & 2 are the primary objectives (remove comma if needed) and create non-string variable so I can label 1 - 9 responses (many to one) ... which I cannot do while it is a string (and if I do it after I encode, it labels the observations with the label text, which is not correct).
Any assistance would be greatly appreciated! String variables and I are not getting along :-)
Thanks,
Ashlee
Comment