| Date: | Sun, 30 Apr 2006 14:45:11 -0700 |
| Reply-To: | "von-hippel.1@osu.edu" <ptvonhippel@CHECKFREE.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "von-hippel.1@osu.edu" <ptvonhippel@CHECKFREE.COM> |
| Organization: | http://groups.google.com |
| Subject: | Re: Running minimum |
|
| Content-Type: | text/plain; charset="iso-8859-1" |
|---|
P.S. In the grown-up version of the problem, the data is indexed by id.
I want to track the minimum of the prior observations separately for
each id. So if the input is columns 1-2 below, I'd want the output to
include column 3.
id amt prior_min
1 20 .
1 50 20
1 50 20
1 250 20
2 30 .
2 50 30
2 50 30
2 250 30
|