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]
Ang: Re: Ang: Re: st: Corrgram and values saved in r()
From
Tomas Lind <[email protected]>
To
[email protected]
Subject
Ang: Re: Ang: Re: st: Corrgram and values saved in r()
Date
Fri, 15 Mar 2013 09:01:35 +0100
Yeas, it works fine, and is easy to understand.
Thanks Nick for your kind input on this.
/Tomas
[email protected] skrev: -----
Till: "[email protected]" <[email protected]>
Från: [email protected]
Sänt av: [email protected]
Datum: 2013-03-14 21:22
Ärende: Re: Ang: Re: st: Corrgram and values saved in r()
It is perhaps easier to work with -ac- here, given its -generate()- option.
Nick
[email protected]
On 14 Mar 2013, at 15:32, Tomas Lind <[email protected]> wrote:
> Works perfect. Thanks Maarten for your kind help.
>
> /Tomas
>
>
>
> [email protected] skrev: -----
> Till: [email protected]
> Från: Maarten Buis
>
> On Thu, Mar 14, 2013 at 11:03 AM, Tomas Lind wrote:
>> I want to sum the absolut value of all PAC's up to lag 20
>
> *------------------ begin example ------------------
> webuse air2 , clear
> tsset t
> corrgram air, lags(20)
>
> mata
> st_numscalar( "abs_sum", sum(abs(st_matrix("r(PAC)"))) )
> end
>
> di abs_sum
> *------------------- end example -------------------
> (For more on examples I sent to the Statalist see:
> http://www.maartenbuis.nl/example_faq )
>
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/