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, is already up and running.

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

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

From   Maarten Buis <>
Subject   Re: st: Corrgram and values saved in r()
Date   Thu, 14 Mar 2013 11:36:58 +0100

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)

st_numscalar( "abs_sum", sum(abs(st_matrix("r(PAC)"))) )

di abs_sum
*------------------- end example -------------------
(For more on examples I sent to the Statalist see: )

Hope this helps,

Maarten L. Buis
Reichpietschufer 50
10785 Berlin
*   For searches and help try:

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