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: lags with multiply imputed panel data


From   Daniel Miller <[email protected]>
To   [email protected]
Subject   Re: st: lags with multiply imputed panel data
Date   Mon, 1 Mar 2010 16:00:37 -0500

Hi Nick, thank you for replying.

As I noted in the original email, I am not sure the issue is that the time
variable is not appropriately set, but rather that the data are not sorted
properly.
I am able to set lags using L. or L2. just fine in any of the individual
imputed datasets. It is only when I try a combining algorithm using
micombine or mim:
that I get an error message like:

e.g.
mim: xtreg fwork l.ratecata1, fe
-> _mj==1
-> xtreg fwork l.ratecata1, fe
not sorted
r(5);

Thanks,
Dan


On Mon, Mar 1, 2010 at 9:57 AM, Nick Cox <[email protected]> wrote:

> If L. "does not work", whatever that means precisely, then what this
> yields is a beast of unpredictable shape.
>
> Better to set the time variable to something appropriate, and let any
> missings in those terms be explicit.
>
> Nick
> [email protected]
>
> Johan Hellstrom
>
> If the L. prefix does not work, you can see if creating your lagged
> treatment variable manually will help:
>
> bysort idnum (wave): gen lag_ratecata1=ratecata1[_n-1]
>
>
> *
> *   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/
>
*
*   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/


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