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

Re: st: Re: Please help: command "pctile quant = yhat3, n('groups')" doesn't work!


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: Re: Please help: command "pctile quant = yhat3, n('groups')" doesn't work!
Date   Tue, 4 Oct 2005 10:03:01 +0200

Christian,

in additon to what Friedrich Huebler said, also note that in Stata 8, the 
command sequence in question can be rewritten to 

. local groups = round(e(N)/100,1)
. xtile groups = yhat3, nq(`groups')

in Stata 8 upwards. Hence, you don't need the -pctile- line.

Many regards,

Uli

Friedrich Huebler wrote:
> Christian,
>
> Try this:
>
> pctile quant = hut1, n(`groups')
>
> Note that the left and right single quotes are not the same.
>
> Friedrich Huebler
>
> --- Christian Beck <[email protected]> wrote:
> > the above mentioned command line in a book by Kohler and Kreuter
> > (written 2001) "Datenanalyse mit Stata" does not work in our
> > Stata/SE 8.0.
> >
> > On our screen Stata says:
> > --
> > -> . pctile quant = hut1, n('groups')
> > 1==0&1==0&`"'groups'"' invalid name
> > r(198);
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
> *
> *   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/

-- 
[email protected]
+49 (030) 25491-361
*
*   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