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 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 24 Feb 2009 09:04:07 -0800
Reply-To:     Bakaye <b.djaby@ULG.AC.BE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Bakaye <b.djaby@ULG.AC.BE>
Organization: http://groups.google.com
Subject:      Re: Calculate Coeffcient of variation for weight variable.
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

On Feb 24, 5:13 pm, Sandip <sandipto...@gmail.com> wrote: > Hi Bakaye, > > In Proc Tabulate you can use name of weight variable in the Weight > option and use CV to compute the Coefficient of Variation. > > Proc Tabulate data=<dataname>; > class <variable name>; > var <analysis var name>; > weight <weight var name>; > table <analysis var name>*(CV),(all <class variable name>); > run; > > Regards, > Sandip > > On Feb 24, 1:53 pm, Bakaye <b.dj...@ulg.ac.be> wrote: > > > > > Hi, > > > I tried to calculate CV for my continuous variable weighted by another > > variable. The results seems not understandable. CV values are very > > high. > > How to calculate weight mean CV in SAS.? > > Another problem, how to include CV in proc tabulate like means, sum > > and other parameters . > > I'm using SAS 9.1.3

Hi,

I tried this: proc tabulate data=Befr_xs_long; class state; var xpyb xwyb xpys xwys; weight area_culti; table xpyb xwyb xpys xwys*(CV), (all state); run;

The results gives only CV in the last row with xwys variable and the value is not understandable. I obtained also the sum of others variables .


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