Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: How to use lags (for each group in panel) with stata commandXTPMG? (by Blackburn & Frank 2007)

From   "Nick Cox" <>
To   <>
Subject   st: RE: How to use lags (for each group in panel) with stata commandXTPMG? (by Blackburn & Frank 2007)
Date   Thu, 20 May 2010 15:25:37 +0100

I think people need to see exact code to comment helpfully. For example,
it is not clear to me what you mean by string constraints (possibly,
constraints on string variables) and in any case what have they to do
with fitting a numeric model? 

I don't think that the authors of -xtpmg- are members of the list, so
good advice on its specifics may not be forthcoming unless you address

The FAQ advises, and with good reason, at


Say exactly what you typed and exactly what Stata typed (or did) in
response. N.B. exactly! 


Hannu Antero Karhunen

I have a problem concerning lags with XTPMG command in stata (-findit
How can I incorporate right amount of lags to variables for each
individual panel member? What is the most efficient way to do this?

Time series command's (L.L2. etc.) affect all panel groups equally
(regions in my study), but I need to find a way to have different lag
order for each region when running xtpmg.

I already tried  to use maximum lag order  (same four lags for each
variable per region using time series command) and then utilize 
constrain() command to restrict all extra lags to zero (according of BIC
information criterion). But when I define constrains to xtpmg, program
only recognize the first constrain (it seems that normal string
definitions do not work for some reason inside constrain command..).
So I don't really know how to proceed if I cannot use constrain command
to equal extra lags to zero...

If someone has used XTPMG, it would be most helpful to hear how lags
(defined with information criterion for each group in the panel)  are
used with xtpmg.

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index