I am not clear what you regard as appropriate behaviour
with two ids, but -tsset- is very simple-minded and has
only the idea of one panel, one id.
egen panelid = group(m_pid f_pid), label
is one way of producing a composite identifier. This may be
what you want here.
Nick
[email protected]
Haardt, David A M
I'm having some trouble with the error message "repeated time values
within panel" given by the -tsset- command. I already had a look at
http://www.stata.com/support/faqs/data/repeatedtime.html
Basically, there are two ids in my data set (m_pid and f_pid) since I
look at couples. Obviously for single people the partner's id will
always be missing which leads to the problem: apparently, -tsset- treats
all single men as having the same partner id (f_pid==.), and all single
women also as having the same partner id (m_pid==.). The problem then is
that of course there are many single men and many single women who share
their observation time.
The if option does not work with -tsset-; is there any way of letting
Stata use only those observations with non-missing f_pid when saying
-tsset f_pid wave-, and only those observations with non-missing m_pid
when saying -tsset m_pid wave-, other than creating two separate data
sets?
<http://www.iser.essex.ac.uk/home/damhaa/>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
--------------------------------------------------------------------------------
Previous Article (by Date): Re: st: Fw: micombine with xtmixed Maarten buis
Articles sorted by: [Date] [Author] [Subject]
--------------------------------------------------------------------------------
Go to Harvard School of Public Health LWGate Home Page.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/