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

RE: st: Area under a percentile point

From   "Wendy Olsen" <>
To   "" <>
Subject   RE: st: Area under a percentile point
Date   Tue, 3 Feb 2009 16:28:49 +0000


Use the .do file syntax method, and set your .do program to place the command

egen pctile          etc.

coming before a keep command or a drop command - either way, using an if subcommand.

Thus you drop any data that is not on the relevant pctile.


Wendy Olsen
Senior Lecturer in Socio-Economic Research
Cathie Marsh Centre for Census & Survey Research
and Inst. for Development Policy and Management
Univ. of Manchester
Manchester M13 9PL
tel 0044-161-275-3043
"The human voice can never reach the distance that is covered by the still small voice of conscience."  Mohandas Gandhi.  Found posted on a huge plastic sign in an airport in India.  

-----Original Message-----
From: [] On Behalf Of zeynep elitas
Sent: 03 February 2009 13:28
Subject: 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.

Zeynep Elitaş

*   For searches and help try:

*   For searches and help try:

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