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?
Second-order factor analysis Dear StataListers, I am working on a project on which I am trying to estimate a factor analysis usi…
How can I report p value with asdoc and xtregDear all, I am struggeling with getting the p value in word using asdoc and xtreg. - i tried to us…
bar graph positionHi Anybody can help me with how to fix the graph position. < graph hbar (mean) group_0 group_1 i…
Reformating hour variableHello! My dataset includes exams information: 1. starttime - the hour the exam started 2. duration_h…
Very different SEs with table vs mean when there are missing values and pweightsStata version: 17 I ran the new table command with the statistic(semean varlist) option. The result…
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