- 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
Bar Chart with standard errors (move from two to three bars)Dear all, I hope all is well with you. I wanted to create a bar chart with three bars along with th…
Basics - Including control variable with many missings in regressionHello, I am confused about a simple issue: Imagine a cross-sectional dataset with plenty of ids. If …
Recode numeric variables to categoricalHi. I have two numeric variables. I need to build logistic regression, so how to combine those two …
Get rownames from tabstat matrixHi all, I am trying to get rownames from a tabstat matrix, example code: Code: sysuse auto, clear…
replacing all missing ".a" to "."?Dear All, How can I replace all ".a" in the following dataset Code: * Example generated by -dataex…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a dummy variable that selects the data
Post a Comment