Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: 'repeated time values within panel' error message with -tsset-


From   n j cox <[email protected]>
To   [email protected]
Subject   st: 'repeated time values within panel' error message with -tsset-
Date   Tue, 21 Feb 2006 21:45:51 +0000

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index