Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: statsby?


From   Sascha Robert <[email protected]>
To   [email protected]
Subject   Re: st: RE: statsby?
Date   Tue, 03 May 2005 17:43:48 +0200

Dear Nick

Your solution is exactly what I needed.
A thousend thanks,
Sascha

Nick Winter wrote:
In Stata 8, this should do the trick:

. statsby "ktau x y " TauB=r(tau_b) P=r(p) , by(z) saving(myfile)

In Stata 9, it would be:

statsby TauB=r(tau_b) P=r(p) , by(z) saving(myfile) : ktau x y


--Nick Winter

At 04:49 PM 5/3/2005 +0200, you wrote:

With STATA 8, I tried

_statsby "ktau x y" exp_list, by(v w z) saving(myfile)_

where for exp_list I tried _se and _b (I have to admit that the grammar of exp_list remains a riddle to me).

The error produced is r(301): last estimates not found.

Regards, Sascha

Nick Cox wrote:


In principle, -statsby- sounds a good solution.
However, we cannot comment on what went wrong without seeing your code. Also, the syntax of -statsby- differs between Stata 8 and Stata 9, so you would need to specify version as well.
Nick [email protected]
Sascha Robert



I have to do a bunch of Kendall's tau correlations. Now the output of

_ktau x y, by(z)_

is quite exaustive, and I am mostly interested in
- Kendall's tau-a
- Prob > �z�

Is there a way to direclty produce a table of the results, like

tau-a prob ...
a b ...
c d ...,

instead of producing text output?

Is _statsby_ a solution for my problem? It does not seem to work for my puposes, though.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


--
***** sascha robert | mailto: [email protected] *****
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

--------------------------------------------------------
Nicholas Winter                           607.255.8819 t
Assistant Professor                       607.255.4530 f
Department of Government              [email protected] e
308 White Hall            falcon.arts.cornell.edu/nw53 w
Cornell University
Ithaca, NY 14853-4601


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


--
***** sascha robert | mailto: [email protected] *****
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index