Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ang: Re: st: Corrgram and values saved in r()


From   njcoxstata@gmail.com
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: Ang: Re: st: Corrgram and values saved in r()
Date   Thu, 14 Mar 2013 20:21:59 +0000

It is perhaps easier to work with -ac- here, given its -generate()- option.

Nick
njcoxstata@gmail.com

On 14 Mar 2013, at 15:32, Tomas Lind <tomas.lind@sll.se> wrote:

> Works perfect. Thanks Maarten for your kind help.
> 
> /Tomas
> 
> 
> 
> -----owner-statalist@hsphsun2.harvard.edu skrev: ----- 
> Till: statalist@hsphsun2.harvard.edu
> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index