I am using Stata 17 and I’d like to produce a frequency table (tabulate one way) based on multiple variables that have been manually encoded from an open survey-question.
Since respondents have given multiple answers to that question, each person in the dataset has five variables named “encoding_t1” to “encoding_t5” that relate to that same open question. Therefore, a value like 101 encoding for example “cultural related activities”, or 102 encoding "religious related activities" can occur in every single one of these variables - same for every other value of the code scheme.
The frequency table I'd like to produce, should, however, not provide only statistics (like number of observations, percentages) on one variable (e.g. encoding_t1), but should provide information on all of these variables, since I would like to know how many respondents engage in cultural activities or religion activities overall.
Is there a way to produce a variable set where I can get statistics on responses from all these variables in one table? Or do I have to produce a dummy-variable for every possible value from encoding_t1 to encoding_t5?
Related Posts with Tabulation based on multiple categorical variables
Issue trying to fill in missing dataGood day, I have a gender variable for panel data. This variable is sometimes missing in one or the…
twoway connectedCounty Country_code Region_Name Income MIT2003 MIT2004 MIT2005 mean_MIT2003 mean_2004 mean_2005 Aru…
Help with code for confidence bonds for QQplot of residualsHi guys, I am running a multiple linear regression model and to check the assumption of normality o…
Variable __000000 already definedHi, I do have a puzzling problem. I am computing gini coefficients using the bootstrap command to g…
Comparing two interaction terms using "test"Hello, I have two interaction terms, which I would like to compare statistically. Say, some variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Tabulation based on multiple categorical variables
Post a Comment