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?
Exporting vif results to excel Hi I am new to stata I had run this regression reg log_daystoreject_ctnf i.filing_year i.uspc_enco…
Is poisson QML fixed effect estimation appropriate for non-negative continuous variable in event-study design?Dear Stata users, I'm looking at the effect of coauthorship with a star scientist on the individual…
Self constructed variable (CTT_MDDR) related to time/age of wine that switches from negative to positive: HOW TO IMPLEMENT?Dear all! My research is about the price behavior of investment grade wines. Of each wine, critics …
Creating a dummy variable that selects the data I've created dummy variables for treatment and comparison group (treat1) and for the Minimum Wage I…
doLCA plugin PSUI am currently using the doLCA plugin list to estimate an unconditional RMLCA model. However, I have…
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