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: "First numlist in weights( ...) invalid" error when using tssmooth to calculate a simple moving average


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: "First numlist in weights( ...) invalid" error when using tssmooth to calculate a simple moving average
Date   Thu, 6 Sep 2012 22:23:54 +0100

No; when I refer to my -filter()- I do mean my -filter()- function,
which is (and has been through its history) only available through
-egenmore- (SSC).

The -ma()- function of -egen- was never mine, and has been through its
history part of official Stata, but is now undocumented. It precedes
the whole machinery of -tsset-, does not support panel data, and is
now superseded by other stuff. But -filter()- remains consistent with
other parts of Stata.

The posting you cite from 2009 remains correct in every detail.

Nick

On Thu, Sep 6, 2012 at 8:37 PM, Aaron Kirkman <[email protected]> wrote:
> Nick, my mistake; I hadn't worked my way through -set trace- yet to
> quite figure that out, but your explanation makes perfect sense. I'll
> look into -egenmore-. Are you referring to its "-egen, ma()-"
> functionality? According to this thread
> (http://www.stata.com/statalist/archive/2009-08/msg00853.html) that
> functionality is no longer supported (although the thread is somewhat
> out of date).
>
> Brian, thanks for the fix. Let me know if you need any more info from me.
>
>
> Aaron
>
> On Thu, Sep 6, 2012 at 1:32 PM, Nick Cox <[email protected]> wrote:
>> Also, my -egen- function -filter()- in -egenmore- (SSC) will I think
>> do exactly what you want.
>>
>> Nick
>>
>> On Thu, Sep 6, 2012 at 6:59 PM, Nick Cox <[email protected]> wrote:
>>> Sorry; I evidently didn't make myself clear enough, or you've missed
>>> some very minor ironies of style. Where the error arises is not in
>>> doubt.
>>>
>>> -set trace- is sufficient to tell exactly where the error occurs and
>>> using it lies behind my previous post. Also, the error occurs when
>>> int(N/2) exceeds 1600, which as you say is when N >= 3202.
>>>
>>> I haven't copied my post to Stata tech support, so you may want to
>>> press them gently on the point.
>>>
*
*   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