I am working with a dataset from a poll of registered voters. For each observation (one voter), respondents were asked to use "feeling thermometers" to indicate their attitudes towards a series of different candidates. Each feeling thermometer variable is coded as a numeric variable with an integer value of 1, 2, 3, or 4. I am looking for a way to create an indicator variable for each observation to denote which feeling thermometer variable has the highest value (in order to eventually determine a correlation between positive attitudes and voting behavior). I haven't been able to figure out how to create such an indicator variable with the limited Stata knowledge I currently have. Advice appreciated!
Related Posts with Generating an indicator variable to denote the highest value from a set of variables in an observation
help me whit stata commanddear statalist it's my first job with been I'm not very practical I am working on a panel data to …
Interpretation of Interaction termsDear Statalisters I run following regression for panel data of children: PPVT being a test score, a…
regression of the panel data: dependent variable and independent variable is the same variable in different groupHi, I am now running a panel regression, for example, return in year 2018=c+return in year 2010-2017…
Sts graph truncateCiao, I am conduct survival analysis and need to truncate x-axis. The survival time data I have obta…
3SLS with non-continuous endogenous variablesHello Everyone, Much thanks for the opportunity provided for clarification of doubts and guidance on…
Subscribe to:
Post Comments (Atom)
0 Response to Generating an indicator variable to denote the highest value from a set of variables in an observation
Post a Comment