Bookmark and Share

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]

Re: st: repeated time values within panel


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: repeated time values within panel
Date   Thu, 5 Sep 2013 15:50:36 +0100

Backing up here: What is your reason for setting a time variable here?
Clearly your mothers define panels, but  different mothers have
children at quite different times. -xtset Stateno- may be as much as
you really need. Nothing stops you using the year as a covariate for
most other purposes. Which commands do you want to run that require a
time variable to be set?

Nick
[email protected]


On 5 September 2013 15:37, Momplaisir, Florence
<[email protected]> wrote:
> Hello,
>
> I'm working with a longitudinal dataset using surveillance data on HIV+ women during pregnancy and at delivery. In the dataset, women have multiple pregnancies and some have multiplets (twins, triplets etc). I'm using the xtset command to run a regression with the woman (Stateno variable) and the year as the time variable. Here is the error I found:
>
> xtset Stateno birthyr
> repeated time values within panel
> r(451);
>
> And this is because I have twins that have repeated time values, i.e. repeated time measures. How do I get ride of that duplicate without deleting from the dataset?

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index