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]
st: RE: How to (almost) randomly reduce the number of observations?
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: RE: How to (almost) randomly reduce the number of observations?
Date
Mon, 19 Apr 2010 22:46:48 +0200
<>
The first part could be accomplished via
*******
drop if runiform()<.7
*******
if a drop of 70% was desired. The second part, you really have to explain it
more comprehensively, I am afraid...
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dimitrije Tišma
Sent: Montag, 19. April 2010 22:31
To: [email protected]
Subject: st: How to (almost) randomly reduce the number of observations?
Hi,
I would like to ask how to reduce number of observations randomly BUT
in a way that all observations are kept that are related to the person
who still in the dataset. Thanks!
Dimitrije
*
* 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/