Hello,
I apologize in advance for any beginner's mistakes, as this is my first post. I'm working with panel data of five variables: Year, SenateHouse, State, GeneralElectionStatus, and IncumbentChallengerStatus. Each observation is an individual political campaign. SenateHouse is a dummy variable for whether the campaign is for the Senate or the House of Representatives, State is the American state of the campaign (encoded), GeneralElectionStatus is a dummy for if the campaign was victorious or not, and IncumbentChallengerStatus is a dummy for if the campaign was that of an incumbent or a challenger. My goal is to find the percentage of political campaigns within each year, state, and chamber of congress that were those of incumbents. An incumbent ratio of sorts. I've been looking into using the "contract" command, but hadn't been able to figure out how to get the percentage value within the categories of the other variables. Any assistance that you may be able to provide is much appreciated.
Related Posts with Finding Percentage Occurrence of a Dummy Variable Given the Values of Several Other Variables
Problem Renaming Variables That Contain "."Hello, I am using the 2018 dataset from Latinobarometro. A lot of variables are named something lik…
Plotting multiple bar graphs with CII want to plot crude and age-adjusted rates with CI on a single graph. I'm using the following code …
Trying to create a Unique Identifier for a Survey Data. (Have tried following other posts but nothing has worked)Hello, I hope this post finds you well ! The version of STATA being used is 14.2 The following is a…
how to deal with '' xthenreg'' for dynamic threshold modelsDear all Finally we get the stata' command to deal with the endogeneity issue for threshold model, …
How to create individual panel data through merging two cross sectionsHello All I am in need of desperate help regarding my model. I have cross-section data done for two …
Subscribe to:
Post Comments (Atom)
0 Response to Finding Percentage Occurrence of a Dummy Variable Given the Values of Several Other Variables
Post a Comment