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:33:51 -0700 (PDT)

I'm also surprised that when I write the smooth(6.25) or smooth(1600), it
doesn't work but it works without giving parameter assuming it to 1600.

ajjee


On 26 March 2011 12:22, Nick Cox &lt;[email protected]&gt; wrote:
The help for -hprescott- clearly states

"-hprescott- does not  allow gaps within the observations of a time series."

One possibility is that you interpolate somehow to replace missing values.

Or you might write a clone of -hprescott- that gets round its rule in
other ways.

It remains unclear why you got results with one set of option choices
and not another.

Nick

On Sat, Mar 26, 2011 at 11:16 AM, ajjee &lt;[email protected]&gt; wrote:

> 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.

--
View this message in context: http://statalist.1588530.n2.nabble.com/HPRESCOTT-problem-tp6209845p6210306.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