Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: AW: Area under a percentile point


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: AW: Area under a percentile point
Date   Tue, 3 Feb 2009 15:46:06 +0100

<> 

BTW, just in case you do not have access to Stata 10.1, use 

*************
generate x=invnormal(uniform())
*************

to generate the random numbers in my earlier post.


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Martin Weiss
Gesendet: Dienstag, 3. Februar 2009 15:12
An: statalist@hsphsun2.harvard.edu
Betreff: st: AW: Area under a percentile point


<> 

Let`s keep those below the 75 percentile of generated normal deviates...

*************
clear*
set obs 1000
generate x=rnormal()
_pctile x, p(75)
keep if x<=r(r1)
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von zeynep elitas
Gesendet: Dienstag, 3. Februar 2009 14:28
An: statalist@hsphsun2.harvard.edu
Betreff: st: Area under a percentile point

I have a simple question which I do not have the answer for. Is there
a way to tell Stata to keep the data under a certain percentile point
and drop the rest?  This is important since in my data a percentile
point has often the same value as the ones below and over it.

Thanks
Zeynep Elitaş

*
*   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/


*
*   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/


*
*   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   |   What's new   |   Site index