I have the Syntax of did_imputation is as below
Array
I am wondering how to create the variable Ei.
In my case, the unique unit id is "TYPE2"
For example, I have three countries in my sample, US implement is 1995, UK implement in 1997, and Jordan never treat.
So, I think of
gen ei=1995 if GEOGN2=="US"
gen ei=1997 if GEOGN2=="UK"
gen ei=. if GEOGN2=="Jordan"
Is it correct?
Related Posts with How to create a varaible based on each value of existing variable in did_imputation?
table with coefficients from regressionsHello With the following code I am able to run the regressions and get the constant and the t-stati…
Efficiently creating lags only for certain yearsHi, I am working with election data and have two datasets (concerned variables explained below): D…
Questions about components' stationarity in VAR model.I am very confused about the stationarity of variables in VAR. It seems that different econometrics …
syntax of forecast errorHi all, I am currently working on a state-dependent fiscal multiplier using forecast error to ident…
Program to label variables from list of words - How to use fewer single and double quotesI am used to make reusable programs, and find myself having issues with how I use the local single q…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a varaible based on each value of existing variable in did_imputation?
Post a Comment