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

st: How to randomly pick one observation from all?


From   Yanjun Bao <[email protected]>
To   [email protected]
Subject   st: How to randomly pick one observation from all?
Date   Tue, 11 Jun 2002 16:39:52 -0500

Hi, there:

We have say, by one id, four observations under a variable. We want STATA to randomly pick one observation each time it is asked. We want to use the randomly picked observation for each id in regression.

Any information will be greatly appreciated! Thanks.

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