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]

st: Re: -HPRESCOTT- problem


From   ajjee <[email protected]>
To   [email protected]
Subject   st: Re: -HPRESCOTT- problem
Date   Sat, 26 Mar 2011 04:16:12 -0700 (PDT)

Thanks Baum!

I find no problem with the example. I think there might be some problem with
my dataset. I have missing data for some countries in some years. Is it the
problem? and if it is, then what to do?

Regards,





On 26 March 2011 12:06, Kit Baum &lt;[email protected]&gt; wrote:
<>
On Mar 26, 2011, at 2:33 AM, Ajee wrote:

> I've a panel dataset of 130 countries over the period 1970-2008. I'm
> facing
> a problem with -hprescott-. When I write the command
>
> xtset country year
>
> by country: hprescott  gdp_constant , stub (hp) smooth(6.25) , the result
> is
> no observations
>
> but when I don't give the smoothing parameter,that is,
>
> by country: hprescott  gdp_constant , stub (hp)
>
> it works assuming a smoothing parameter of 1600 which is for quarterly
> data(I think). Please help.

I see no problem with this command:


. webuse grunfeld, clear

. by company: hprescott invest, stub(hp)

. by company: hprescott invest, stub(hp2) smooth(6.25)

. tsset
      panel variable:  company (strongly balanced)
       time variable:  year, 1935 to 1954
               delta:  1 year

Try that on your machine.

Kit Baum
[email protected]


--
View this message in context: http://statalist.1588530.n2.nabble.com/HPRESCOTT-problem-tp6209845p6210286.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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