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
Is there an arbitrary scaling factor in logistic regression in Stata?Hi, Norton et al state in a recent JAMA guide that the magnitude of the odds ratio from a logistic …
Interpretation of grand mean centered versus original form level-2 variables in multilevel logistic regressionHello, I have a random intercept multilevel logistic regression model with cross-level interactions…
How to graph hours worked and wage assimilation profiles for immigrants?Dear Stata Forum, I have an unbalanced panel data set with observations at the individual level. I r…
combine four categorical variables altogether and generate new variableDear Stata forum, I would like to calculate a median and I know that Stata provides the code for MAD…
How to calculate Jaccard SimilarityDear Statlisters, I am trying to calculate a pairwise Jaccard similarity measure and have trouble f…
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