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

st: using *one* (random) observation meeting an -if- criteria

From   Fredrik Wallenberg <>
Subject   st: using *one* (random) observation meeting an -if- criteria
Date   Wed, 3 Aug 2005 08:34:11 -0700

As a follow up on my earlier question regarding grouping observations
I got (and built) solutions that work but that rely on sorts to put an
observation meeting my criteria in position 1.

If there was a way for me to set a scalar equal to the first
observation that meets my criteria, I suspect I could speed up the
algorithm a lot (and trust me, I need it... I'm probably about 1/4
through the dataset and my program has been running for well over 12



*   For searches and help try:

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