- I've created dummy variables for treatment and comparison group (treat1) and for the Minimum Wage Increase Period(NMW). I wanted to create a dummy variable that takes all the observations for the ID variable in all the years we're looking at, not just the NMW period.
- So I wanted to create pp=1 for when treat1 =0/1 and NMW=1 for sa_id for three years prior to Min Wage increase and three years of the increase i.e. 2009-2011 and 2012-2014.
- How would I go about doing this?
Related Posts with Creating a dummy variable that selects the data
Interpretation of Negative Binomial Regression Model with Panel DataDear All, I am using Stata 14 and investigating the impact of Corporate Venture Capital Investment …
Crossed effects models with covariatesHi, I'm relatively new to STATA, and am struggling to understand a particular code that explains ho…
TestCode Test Code: xtreg ff.logny02a i.phase1##i.regulated i.phase2##i.regulated c.logfixedassets i.n…
Adjusting for missing observations in a weighted standardized indexHi, I'm working with individual-level pooled cross-sectional National Health Interview Survey (NHIS…
Place labels on boxplots with asyvars optionI generate a hbox with Code: clear set obs `=9 * 2 * 5' set seed 2803 gen y = rnormal() egen x1…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a dummy variable that selects the data
Post a Comment