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 (March 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 1 Mar 2002 17:02:19 -0500
Reply-To:     Mike Rhoads <RHOADSM1@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Mike Rhoads <RHOADSM1@WESTAT.COM>
Subject:      Re: Simple PROC MEANS question - weighting
Comments: To: data_into_value <ericv_1998@YAHOO.COM>
Content-Type: text/plain; charset="iso-8859-1"

Not all that simple a question, actually.

No, I don't know of a way you can selectively weight the mean of just one variable in a single VAR statement. However, beginning in version 7 you can put more than one VAR statement in PROC MEANS, and you can specify WEIGHT= as a VAR statement option. So, although I haven't tried it, I suspect that the following would do what you want:

PROC MEANS etc. VAR Var1 / WEIGHT=WeightVar; VAR Other1 Other2 Other3; other stuff

Mike Rhoads Westat RhoadsM1@Westat.com

-----Original Message----- From: data_into_value [mailto:ericv_1998@YAHOO.COM] Sent: Thursday, February 28, 2002 12:29 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Simple PROC MEANS question - weighting

Can I compute a weighted mean for just one variable in a VAR list, while reporting unweighted means for the other variables?


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