Date: Tue, 3 Feb 1998 10:13:00 -0500
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Mike Schexnayder <irmike@LSU.EDU>
Organization: Budget and Planning, Louisiana State University
Subject: Re: grouping obs
Content-Type: text/plain; charset=us-ascii
My first post was wrong.
proc sort data=batch; by chain store week;
data batch; set batch; by chain store ;
if first.store then hprice =.;
if price = hprice then flag= '*';
proc print; by chain;
var store week price flag;
> EMWalczak wrote:
> > I have a dataset that looks like this
> > chain store week price
> > He wants me to flag/group obs where the price is the same over week....
> > it seems to me, this is a "cluster" analysis, but I'm not a stat's person,
> > ideas out there?
> > i'm slowly getting a program together that does this, but i think SAS must
> > likely has a "proc" to do it, I just don't know what!
> > thanks in advance!