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
Impulse response functions when the system has equations with lag and contemporeneous relationsHi I have a system as following: A(t)= A(t-1) + B(t-1) + C(t-1) + error(t) B(t)= A(t-1) + B(t-1) + …
geoinpoly with self made coordinates fileHello, I have recorded the lat and lon coordinates for different rectangular areas. I have group th…
Survival analysis with lagged variableHi all, I am here to ask for your suggestions on how to run survival analysis with lagged variable.…
Creating a graph using xtline without connecting the data points. Shading some areas of the graphHello, I am trying to create a graph using the command xtline. The graph contains a line for the va…
Help with spmap legend optionHi, Im currently working on a map of Colombia with Stata 14 and spmap (Maurizio Pisati) based on th…
Subscribe to:
Post Comments (Atom)
0 Response to Tabulation based on multiple categorical variables
Post a Comment