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
McKelvey-Zavoina R2 Multilevel Model (Random Effects)Hi, I am estimating a random effects logit model with panel data and I want to calculate McKelvey-Za…
Resample dataHi everyone, I hope someone can help me with this question. I have a dataset includes 1000 observati…
Importing .GRD data into StataDear all I have a simple question but cannot seem to get it to work. I have downloaded gridded tem…
Rolling regression for calculating expected inflation rate.Dear all, Suppose I have the following dataset: clear input int year double(inf gdp) 1990 5.724589…
creating a count column for unique observations for given study subjectsHello, I am trying to figure out a code that would allow me create a column that counts the number …
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