Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: alternative to rcap


From   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   st: alternative to rcap
Date   Sun, 29 Feb 2004 18:06:49 -0600 (CST)

Dear statalist,

I can't seem to figure this out. I have data from a table that I would
like to plot. The data looks like this:

country		sex	mean	se	x
USA		Male	269.34	(2.29)	1
USA		Female	277.60	(2.17)	1
England		Male	267.80	(2.52)  1
England		Female	266.78	(2.56)  1
Scotland	Male	264.91	(4.69)	1
Scotland	Female	267.65	(3.56)	1
.		.	.	.
.		.	.	.
Scotland	Female  400.65  (4.73)  10


I would like to plot the means for each country-sex cell (with t-shaped
error bars that are +/- 2*se) as lines with x on the x-axis.
I could do this with twoway rcap by defining y1=y+2*se and y2=y-2*se, but
that only plots the error bars without connecting the points. Is
there a way to connect the points or is there a better alternative to
this?

Thank you for your help.

DVM


_______________________________________________________________________________
Dimitriy V. Masterov

Work:
Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
Work: (773)256-6005
Fax: (773)256-6313

Home:
1312 East 53rd St., Apt.309
Chicago, IL 60615
Mobile: (773)220-2760



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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