[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Salome Dell-Kuster" <skuster@uhbs.ch> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: Using weights in a graph dot |

Date |
Thu, 03 Sep 2009 18:11:40 +0200 |

Hello, i got stuck in a problem with the weights for a 'graph dot'. And if I may, I would like to ask you for help. My plan was to create a 'graph dot' for several groups where the size of the marker should represent the number of observations in the corresponding group. I could find the weight-option in the help file and tried several ways but without success (on the other hand, I was able to do it the same way in a scatter plot, which is not as convenient for all the other features of the graph). The ways I tried out was with _n (system variable) and with a variable including the effectiv numbers of observations and I also used proportions as another solution - but nothing worked. My command: graph dot (median) diff_ga_aa [aweight=number], over(group1) over(group2) One problem could be that the number of observations goes from about 2 to 1400 in the different groups. Could you give me any hints how to solve this problem or recommend me a book where I can find an example. Thank you very much in advance for your help. Kind regards, Salome Dell-Kuster Salome Dell-Kuster, MD MSc Departement Anästhesie & Institut für klinische Epidemiologie Universitätsspital Basel CH - 4031 Basel +41 61 265 25 25 * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: RE: Using weights in a graph dot***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**RE: error mesage convention [was: Re: st: Importing data with infile: Identifying records with problems]** - Next by Date:
**RE: error mesage convention [was: Re: st: Importing data with infile: Identifying records with problems]** - Previous by thread:
**st: Adjusted kaplan Meier Curves** - Next by thread:
**st: RE: Using weights in a graph dot** - Index(es):

© Copyright 1996–2019 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |