>>> * >> * >> wrote: Sat, 5 Feb 2011 16:56:18 +0700 >>>> The code below starts from the original dataset to generate * http://www.stata.com/help.cgi?search >>> an article by Baker, et al, in The American Journal of Clinical Nutrition, thanks heap, Phil.. >> * http://www.stata.com/support/statalist/faq > * http://www.stata.com/support/statalist/faq statalist@hsphsun2.harvard.edu >>>> * http://www.stata.com/support/statalist/faq >>>> Does anyone know how to create a 'horizontal' bar graph with CIs as Proportion is the point estimate and low95 and high95 are the surrounding 95% confidence intervals. >>> * http://www.stata.com/help.cgi?search * For searches and help try: > (bar meanwrite sesrace if race==3, horizontal) /// >>>> http://www.ats.ucla.edu/stat/stata/faq/barcap.htm >>> * http://www.ats.ucla.edu/stat/stata/ >>> Use the -horizontal- option for both -bar- and -rcap- Subject >>>> * http://www.ats.ucla.edu/stat/stata/ >>> > (rcap hiwrite lowrite sesrace, horizontal) >>>> Many thx in advance, group of points, the labeling would be more explicit, and the dotted lines it if there are three levels of SES and four levels of race, or vice versa. 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. >>>> hafida- these values, saves them as macro variables, and then puts them into the plot Ideally, different markers would be used for each of the four levels seen in one On Sat, Feb 5, 2011 at 4:49 PM, Phil Clayton >>>> * Chrome extensions to help research productivity, Making a new, blank Stata do file within Windows Explorer, The confusion nomenclature of epidemiology and biostatistics. > 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". >> (rcap hiwrite lowrite sesrace) Institute for Digital Research and Education. I made an excel file with the below columns called “dot and 95 percent ci data.xlsx” saved in the same folder as my .do file. >>> groups defined by two categorical variables. Opening the same MS Word document in a second window — the feature that you never knew you wanted. * 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. >> >>>> Hi, Department of Statistics Consulting Center, Department of Biomathematics Consulting Clinic. 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? and any breastfeeding in Danish women". > twoway (bar meanwrite sesrace if race==1, horizontal) /// Example code at the bottom. Doing this will force Stata to set the working directory as the folder containing the .do file (and the Excel file). Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org. >>> * http://www.stata.com/support/statalist/faq Nur Hafidha Hikmayani produces this ideal graph. hafida- >> Thanks Phil, but I've tried to use hbar command and failed: Stata has a pretty handy -twoway scatter- code that can be combined with -twoway rcap- to make the figure below. >>>> * For searches and help try: * 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. Re: st: horizontal bar graph with confidence interval This figure will display row 1 at the top and row 14 at the bottom. > * > * http://www.stata.com/help.cgi?search >> On Sat, Feb 5, 2011 at 4:33 PM, Phil Clayton [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] >>>> * http://www.stata.com/help.cgi?search To Close Excel and close Stata then find the .do file from Windows Explorer and double click it. -cibar- permits to easily plot bar graphs and confidence intervals over groups.