LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 1998, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 3 Feb 1998 10:13:00 -0500
Reply-To:     irmike@lsu.edu
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.

EMWalczak, Try

proc sort data=batch; by chain store week;

data batch; set batch; by chain store ; retain hprice; if first.store then hprice =.;

if price = hprice then flag= '*'; output; hprice=price;

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, any > > 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!


Back to: Top of message | Previous page | Main SAS-L page