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]
RE: st: nokey for spearman
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
RE: st: nokey for spearman
Date
Mon, 9 May 2011 18:36:31 +0100
-quietly- needs to be applied to your second -spearman- command.
Nick
[email protected]
Lachenbruch, Peter
Thanks but it didn't work. Here is a fragment of output and code
It looks like qui is ignored by Stata -
Good thought though
. foreach v of varlist swlsc1 dzactvas skinactp cmasxt dzactpt totalvas proximal finc
> haq ckp aldp extramusc_global extramusc_globale{
2. disp _newline "variable is " "`v'"
3. qui spearman `v' voicesc1 if group==1,mat stats(rho obs p)
4. disp _newline "diadocho etc. present"
5. spearman `v' diadocho Artic voice_quality if group==1 & diadocho<.,stats (rho ob
> s p)
6. }
variable is swlsc1
diadocho etc. present
+-----------------+
| Key |
|-----------------|
| rho |
| Number of obs |
| Sig. level |
+-----------------+
| swlsc1 diadocho Artic voice_~y
-------------+------------------------------------
swlsc1 | 1.0000
| 27
|
|
diadocho | 0.3283 1.0000
| 27 27
| 0.0946
|
Artic | 0.1605 0.0331 1.0000
| 27 27 27
| 0.4239 0.8697
|
voice_qual~y | 0.3685 0.2296 0.1424 1.0000
| 27 27 27 27
| 0.0586 0.2493 0.4787
|
variable is dzactvas
diadocho etc. present
+-----------------+
| Key |
|-----------------|
| rho |
| Number of obs |
| Sig. level |
+-----------------+
| dzactvas diadocho Artic voice_~y
-------------+------------------------------------
dzactvas | 1.0000
| 27
|
|
diadocho | 0.1774 1.0000
| 27 27
| 0.3761
|
Artic | 0.2264 0.0331 1.0000
| 27 27 27
| 0.2562 0.8697
|
voice_qual~y | 0.0258 0.2296 0.1424 1.0000
| 27 27 27 27
| 0.8982 0.2493 0.4787
|
variable is skinactp
diadocho etc. present
+-----------------+
| Key |
|-----------------|
| rho |
| Number of obs |
| Sig. level |
+-----------------+
Maarten Buis
On Mon, May 9, 2011 at 6:50 PM, Lachenbruch, Peter wrote:
> I am doing a lot of spearman correlations with multiple responses and get a key before each matrix output. When I do something like this when using the tab command I can suppress the key with the nokey option. It doesn't work for spearman.
What about the following trick:
sysuse auto, clear
qui spearman mpg rep78 turn displacement
matlist r(Rho) , format(%9.3f)
So we suppress all output from -spearman- and let -matlist- display
the returned "correlation" table.
*
* 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/