Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: use dummy variable for nonmissing data
From
"Rainald Borck" <[email protected]>
To
<[email protected]>
Subject
st: use dummy variable for nonmissing data
Date
Fri, 14 Jan 2011 16:33:17 +0100
Hello,
I have survey data for individuals from several countries and years like this
id country year var1 var2
1 A 1900 1 2
...
200 B 1900 3 .
...
I have created country_year dummies using
xi i.country*i.year, noomit
Now I want to tell Stata to temporarily drop (or not use) the variable _IcouXyea_country_year if that country does not have observations for that year (i.e. the variable is missing for all individuals from that country and particular year). Can anyone help?
Thanks
Rainald
----------------------------
Rainald Borck
University of Passau
94030 Passau, Germany
Tel. +49-851-509-2540
http://www.wiwi.uni-passau.de/borck.html
----------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/