>>> >>> On 05/02/2011, at 7:53 PM, Nur Hafidha Hikmayani wrote: >> twoway (hbar meanwrite sesrace if race==1) /// >> *   For searches and help try: * http://www.stata.com/support/statalist/faq > * Group tells Stata if you want a red diamond or blue square. > The code below shows how to plot the means and confidence interval bars for groups defined by two categorical variables. While this graph is of the general desired form, it not clear from looking at Ideally, different markers would be used for each of the four levels seen in one > >     (rcap hiwrite lowrite sesrace, horizontal) >>>> *   For searches and help try: group of points, the labeling would be more explicit, and the dotted lines Chrome extensions to help research productivity, Making a new, blank Stata do file within Windows Explorer, The confusion nomenclature of epidemiology and biostatistics. >>> *   http://www.ats.ucla.edu/stat/stata/ Proportion is the point estimate and low95 and high95 are the surrounding 95% confidence intervals. groups defined by two categorical variables. >>> This type of plot appeared in This type of plot appeared in an article by Baker, et al, in The American Journal of Clinical Nutrition, "High prepregnant body mass index is associated with early termination of full and any breastfeeding in Danish women".   Institute for Digital Research and Education.   * For searches and help try: >>>> >>>> *   http://www.ats.ucla.edu/stat/stata/ >> wrote: > *   http://www.stata.com/support/statalist/faq Say that you were looking at writing scores broken down by race and ses. Example code at the bottom. Re: st: horizontal bar graph with confidence interval This figure will display row 1 at the top and row 14 at the bottom. produces this ideal graph. MS Word’s new Read Aloud feature: Helpful for dyslexia and typo-finding, ClipSpeak: The most user-friendly, simple text-to-speech app ever. Making a publication-ready Kaplan-Meier plot in Stata, Figure to show the distribution of quartiles plus their median in Stata, Output a Stata graph that won’t be clipped in Twitter, Use Stata to download the NY Times COVID-19 database and render a Twitter-compatible US mortality figure, Getting Python to work with Stata in Windows. > *   For searches and help try: The code below is more complex, but >>>> * Doing this will force Stata to set the working directory as the folder containing the .do file (and the Excel file). Re: st: horizontal bar graph with confidence interval. If the code won’t work, you probably have Excel open. an article by Baker, et al, in The American Journal of Clinical Nutrition,  >>> *   http://www.stata.com/support/statalist/faq Close it and try again. [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] * http://www.ats.ucla.edu/stat/stata/, http://www.ats.ucla.edu/stat/stata/faq/barcap.htm, http://www.stata.com/support/statalist/faq, st: horizontal bar graph with confidence interval, Re: st: horizontal bar graph with confidence interval. >>> *   http://www.stata.com/help.cgi?search From -cibar- permits to easily plot bar graphs and confidence intervals over groups. >> *   http://www.stata.com/support/statalist/faq and any breastfeeding in Danish women". From: Phil Clayton Prev by Date: Re: st: horizontal bar graph with confidence interval; Next by Date: st: How to read a very old SPSS file? Subject We may wish to add additional text to this plot, like p-values from ANOVA tests on race conducted within SES levels. > >>>> *   http://www.stata.com/support/statalist/faq it if there are three levels of SES and four levels of race, or vice versa. Stata code.   Date >>>> hafida- >>> Stata has a pretty handy -twoway scatter- code that can be combined with -twoway rcap- to make the figure below. >>>> Many thx in advance, yes, it worked! In the same folder as the Excel file, copy/paste/save the code below as a .do file. using the text option (similar to the placement of SES levels in >>>> Close Excel and close Stata then find the .do file from Windows Explorer and double click it. We start by generating the "bare bones" version of such a graph. >> On Sat, Feb 5, 2011 at 4:33 PM, Phil Clayton Sat, 5 Feb 2011 16:56:18 +0700 >>>> Does anyone know how to create a 'horizontal' bar graph with CIs as statalist@hsphsun2.harvard.edu The code below shows how to plot the means and confidence interval bars for > Not -hbar-, -bar-: these values, saves them as macro variables, and then puts them into the plot >>>> http://www.ats.ucla.edu/stat/stata/faq/barcap.htm From: Nur Hafidha Hikmayani Re: st: horizontal bar graph with confidence interval. > Nur Hafidha Hikmayani >>      (hbar meanwrite sesrace if race==2) /// Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org. wrote: ... 'CIBAR': Stata module to plot bar graphs and confidence intervals over groups DESCRIPTION/AUTHOR(S) cibar plots bars and confidence intervals of the mean of a variable over at least one group. Writing your first epidemiology scientific manuscript? The code below starts from the original dataset to generate >> *   http://www.stata.com/help.cgi?search Department of Statistics Consulting Center, Department of Biomathematics Consulting Clinic. > twoway (bar meanwrite sesrace if race==1, horizontal) /// Downloading and analyzing NHANES datasets with Stata in a single .do file, Making a horizontal stacked bar graph with -graph twoway rbar- in Stata, Code to make a dot and 95% confidence interval figure in Stata, Making Scatterplots and Bland-Altman plots in Stata, Rendering XKCD #2023 “Misleading Graph Makers” in Stata, Make a Table 1 in Stata in no time with table1_mc. >>      (hbar meanwrite sesrace if race==3) /// Re: st: horizontal bar graph with confidence interval >> * the above plot). > *   http://www.ats.ucla.edu/stat/stata/ >>> Use the -horizontal- option for both -bar- and -rcap- To >>>> *   http://www.stata.com/help.cgi?search >     (bar meanwrite sesrace if race==2, horizontal) /// Generic start of a Stata .do file; Downloading and analyzing NHANES datasets with Stata in a single .do file; Making a horizontal stacked bar graph with -graph twoway rbar- in Stata; Code to make a dot and 95% confidence interval figure in Stata; Making Scatterplots and Bland-Altman plots in Stata * http://www.stata.com/help.cgi?search > >> Opening the same MS Word document in a second window — the feature that you never knew you wanted. >>>> explained in Stata FAQ: In Stata, use the -ssc- command to do this. Working with Stata regression results: Matrix/matrices, macros, oh my! >     (bar meanwrite sesrace if race==3, horizontal) ///