- 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
Setting up dataset for itsa to adjust for covariatesHi. I wonder if someone can help me as I'm loosing my mind here! I want to use ITS (itsa command) t…
R-squared between value of 1Hi there, I am performing panel data regressions using the command xtreg including both time and fi…
Copying a value into a missing value spot with specified conditionsDear Stata-users, I am struggling with a problem for some days now. I tried different methods but s…
Data Shaping for Panel analysisDear Stata users, I would like to shape data I add a time variable. My data are distance between co…
An error midway through reclink ''option ) not allowed)Dear Statalisters, I came across what I think is strange behavior by Stata's reclink. I want to per…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a dummy variable that selects the data
Post a Comment