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
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?
|