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: st: corr_svy output format


From   Stas Kolenikov <skolenik@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: corr_svy output format
Date   Fri, 26 Mar 2010 16:10:41 -0500

You could probably produce a file of arbitrary width with

file open myfile using corr_output.txt, text write replace
unab varlist : [list of independent variables]
forvalues i=1/`: word count `varlist'' {
  file wirte myfile "``i''" _col(12) " | "
  forvalues j=1/`i' {
    corr_svy ``i'' ``j'' [whatever options need to go here]
    file write myfile %6.3f ( r(rho) ) " "
  }
  file write _n
}
file close myfile
type corr_output.txt

On Fri, Mar 26, 2010 at 2:47 PM, Robert A Yaffee <bob.yaffee@nyu.edu> wrote:
> Hi,
>    One of my students is using corr_svy, which forms a matrix of
> correlations among independent variables in a model.  However,
> when the number of variables gets up around 18, the formatting
> of the correlation matrix wraps around.  Unfortunately, this
> makes the output matrix quite difficult to read.  Does anyone
> have a version of this program would fit onto
> a linesize of 80?
>    Thanks,
>        Bob
> Robert A. Yaffee, Ph.D.
> Research Professor
> Silver School of Social Work
> New York University
>
> Biosketch: http://homepages.nyu.edu/~ray1/Biosketch2009.pdf
>
> CV:  http://homepages.nyu.edu/~ray1/vita.pdf
> *
> *   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/
>



-- 
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: I use this email account for mailing lists only.

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index