Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: Venndiag to show percentage of data with weight
From
"Radwin, David" <[email protected]>
To
<[email protected]>
Subject
st: RE: Venndiag to show percentage of data with weight
Date
Fri, 10 Jan 2014 17:05:32 -0500
Please give the author and source of user-written programs as requested
by the FAQ. -venndiag- is by Jens M. Lauritsen and is available from SSC
(and originally from STB).
-venndiag- is over ten years old and uses pre-version 8 graphics. I
don't think there is much you can do to use weighted data except fake an
-fweight- by -expand-ing the number of observations by an integer value.
Even then, the Venn diagram percentages will be correct but the counts
will not be correct. If your weights are not integers, you might be able
to multiply them by an arbitrarily large multiple of ten and then round
them, although this might create a huge dataset in the -expand- step.
All of these kludges are at your own risk!
* Silly example
sysuse auto, clear
tab1 rep78
tab1 rep78 [fweight=weight] // different than unweighted
tab rep78, gen(repdummy)
venndiag repdummy1 repdummy2 repdummy3
expand weight // creates multiple copies of observations
tab1 rep78 // same frequency distribution as the weighted version above
venndiag repdummy1 repdummy2 repdummy3
David
--
David Radwin, Senior Research Associate
Education and Workforce Development
RTI International
2150 Shattuck Ave. Suite 800, Berkeley, CA 94704
Phone: 510-665-8274
www.rti.org/education
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of [email protected]
> Sent: Friday, January 10, 2014 1:21 AM
> To: [email protected]
> Subject: st: Venndiag to show percentage of data with weight
>
> Hi all,
>
> I'm using venndiag to overlay child deprivations; however I cannot
make it
> show the % of weighted data. Venndiag does not have options [weight].
Is
> there any solution for my problem? Thanks.
> I'm using stata 12.
>
> -riri-
> Sent from my BlackBerry(r) smartphone from Sinyal Bagus XL, Nyambung
> Teruuusss...!
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/