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

From |
David Airey <david.airey@Vanderbilt.Edu> |

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

Subject |
Re: st: Graph bar using the over option |

Date |
Wed, 25 Mar 2009 09:37:22 -0500 |

Sent from my iPhone

I created it in StataYes, I think so. What format is your data in now? On Mar 25, 2009, at 8:30 AM, Kate McAllister wrote:Does this mean I have to rearrange my data set? At the momentcolumn 1contains my 'timeperiod' variable and then the other columns are my other variables, with a total of three lines in my table. Is the answer to have the timeperiods as different columns and the variables as different rows? If so, is there a nice simple way of doing this (I have quite a few variables) Sorry if this seems a stupid question - I am a Stata novice! Many thanks. What you wanted is to have your times (ordered correctly) over yourvariables, not your variables grouped by time, which is what yougot.The help file for graph bar talks about what you can expect under different requests. You have to scroll way down to ``remarks'', specifically where it gives pictures of year and division. On Mar 25, 2009, at 6:58 AM, Kate McAllister wrote:This is probably a really simple thing, but I've looked for an answer and I can't find one. I want to create a bar graph displaying several variables over 3 different time periods. If I type: graph hbar (sum) variable1 variable2 variable3 variable4, over(timeperiod) then I get a graph that displays all the variable values for timeperiod1 clustered together, then all the variable values for timeperiod2, and then for timeperiod3. What I actually want is a graph the displays the variable1 values over the three time periods, THEN the variable2 values over the three time periods, then the variable3 values... and so on, all on one graph. What am I doing wrong? Many thanks K * * 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/* * 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/-- Please note change of contact details: Clinical Epidemiology Group Department of Epidemiology and Public Health UCL - Gower Street Campus 2-16 Torrington Place London WC1E 7HN Telephone 020 7679 0975 * * 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/* * 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/-- Please note change of contact details: Clinical Epidemiology Group Department of Epidemiology and Public Health UCL - Gower Street Campus 2-16 Torrington Place London WC1E 7HN Telephone 020 7679 0975 * * 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/

* * 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**:**RE: st: Graph bar using the over option***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: Graph bar using the over option***From:*"Kate McAllister" <k.mcallister@ucl.ac.uk>

**Re: st: Graph bar using the over option***From:*David Airey <david.airey@vanderbilt.edu>

**Re: st: Graph bar using the over option***From:*"Kate McAllister" <k.mcallister@ucl.ac.uk>

**Re: st: Graph bar using the over option***From:*David Airey <david.airey@vanderbilt.edu>

**Re: st: Graph bar using the over option***From:*"Kate McAllister" <k.mcallister@ucl.ac.uk>

- Prev by Date:
**Re: st: Graph bar using the over option** - Next by Date:
**RE: st: Multilevel modelling of survival data** - Previous by thread:
**Re: st: Graph bar using the over option** - Next by thread:
**RE: st: Graph bar using the over option** - Index(es):

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