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]

st: RE: RE: Extracting First Column of Results from -corr-

From   "Nick Cox" <>
To   <>
Subject   st: RE: RE: Extracting First Column of Results from -corr-
Date   Tue, 8 Jun 2010 23:11:46 +0100

-mkcorr- is a user-written program from SSC. I've never used it. Either
way, please remember to specify user-written stuff. 

You want a single vector of correlations, repeated. In principle, that
is obtained by a single loop over the rows of your column nested within
another loop over your situations, whatever they are. 

I'd use -postfile- to orchestrate that. 


Ryan McCann

Thanks Nick.

I'm having trouble manipulating the r(C) matrix.  As a work around I'm
creating new lagged variables instead of using the time series
which allows me to use mkcorr. I've realized though that mkcorr has no
append option.  Is there a relatively straightforward way to output all
my correlation result tables into the same file (and ideally only to
the first column from each of these)?  I'm trying to avoid cutting and
pasting 20+ different tables. 

*   For searches and help try:

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