I have a dataset with poll opinions. The respondents have 4 types of responses: very bad, bad, good, very good. The subject of the questions asked are of three types: concern-environment, concern-economy, concern-personal. So, the dataset includes a subject column that specifies the subject of the question and the 4 corresponding responses columns. I have to find the aggregated proportion of respondents who answers very bad or bad about the economy. Please help me with the Stata code required to perform this exercise.
Related Posts with Aggregated proportion
percentage change of lagged variableI have another related query on generating lagged variables. My regression model looks like this: In…
How to convert strings to date variable?For example, a date of 81.511, corresponds to 06/07/1981(DMY). How do you convert this to a Stata da…
Factor variables vs. dummy variables with interactionsHi all, I have a dummy variable x1 (no missing values) in the dataset and has values of 0 and 1, an…
Creating an adjacency matrix from two columnsDear Statalists, I have 2 columns (id and course) I would like to create two types of adjacency ma…
how to realize the LMtest and wald test of spatial panel data in stata?hey everyone, do you know how to realize the LMtest and wald test of spatial panel data in stata? an…
Subscribe to:
Post Comments (Atom)
0 Response to Aggregated proportion
Post a Comment