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 (May 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 17 May 2011 15:05:59 -0500
Reply-To:     Joe Matise <snoopy369@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Joe Matise <snoopy369@GMAIL.COM>
Subject:      Re: PROC MEANS/WEIGHTS - any way to output normalised weight
              values?
Comments: To: Andrew.Clapson@statcan.gc.ca
In-Reply-To:  <F433BF18D811E745B79191E749A6DAF1028FDEAF@stcem16.statcan.ca>
Content-Type: text/plain; charset=ISO-8859-1

I imagine SAS uses the trivial as you say calculation of sum(weight times variable value)/sum(weights), so it does not calculate an individually normalized weight; but who knows. Perhaps in some of the more complex statistical calculations it might need to... Generally I provide my own normalized weight first to make sure things are as expected... if I have weights that are not normalized, probably it's for a good reason and I'd rather SAS leave them alone.

-Joe

On Tue, May 17, 2011 at 9:40 AM, Clapson, Andrew - PPD/DPP < Andrew.Clapson@statcan.gc.ca> wrote:

> Hey all, > > Just curious if it is at all possible to get an output dataset of > weights used in a Weights statement? > > Let's say, for example, for weight variables used in calculated a > weighted mean via the PROC MEANS procedure. While I doubt that SAS > explicitly calculates individual normalised weights, is there perhaps > some functionality to extract the weights in this form? (Yes, I realise > the calculation is trivial, but if SAS can do it within the PROC MEANS > procedure, it will save me a step.) > > Thanks for the help, > > Andy Clapson >


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