Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: levinlin vs. ipshin: lag length with local macro

From   "Falko J��en" <[email protected]>
To   [email protected]
Subject   st: levinlin vs. ipshin: lag length with local macro
Date   Sat, 26 Mar 2005 17:55:13 +0100 (MET)

Hi all,

in the archive I found a helpful posting of Scott Merryman:

His code develops a numlist specification for the optimal lag length in the
context of a panel unit root test such as <levinlin> and <ipshin>. The code
proposed by Scott allows me to construct a local macro named opt_lag, which
includes the optimal lag length for each panel. Having modified the code for
my purposes (variable names and so on), I type:

. levinlin migration, lag(`opt_lag')

Everything works fine, which means I get some output. However, the following
gives an error:

. ipshin migration, lag(`opt_lag')
too many macros

My panel has 240 cross-sectional units. I suppose this is too much for
<ipshin> when individual lag lengths are specified. When I use the code on a
smaller panel (e.g. 20 cross-sectional units), the code also works for
My question is: Is it possible to include 240 different lag lengths with
ipshin? The help file only says: "If a list of lags is provided (perhaps
with a local macro), its length must match the number of individuals in the
panel." This is the case in my application.

Thanks for any advice,


Sparen beginnt mit GMX DSL:
*   For searches and help try:

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