Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: set: simple question - confidence interval plot


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: set: simple question - confidence interval plot
Date   Mon, 30 Jun 2008 19:49:13 +0100

Only a short while ago I reminded you of the standard Statalist request
to explain where user-mentioned programs you mention come from! 

-civplot- and -cihplot- are user-written programs on SSC written for
Stata 6. It is difficult to see why anyone would want to use them unless
they are still on Stata 6 or Stata 7. For a problem like this you might
as well use basic commands. 

With these data in memory 

group                mean         upper lower 
	A			2.0			3.0  1.0
	B			4.0			5.0  3.0
	C			2.5			3.0  2.0
	D			5.0			6.5  3.5

you could go 

gen id = _n 
labmask id, values(group) 
scatter mean id, xla(1/4, valuelabels) || rcap upper lower id 

Here -labmask- is part of -labutils- on SSC or separately available from
the Stata Journal website: -findit labmask- for locations. 

Nick
[email protected] 

Shehzad Ali

This is a simple question. I have a set of mean values and confidence
intervals from a dataset which I want to plot in a graph. Here is what
the
reduced dataset looks like:

Group Name		Mean value		Upper bound of CI
Lower bound of CI

	A			2.0			3.0
1.0
	B			4.0			5.0
3.0
	C			2.5			3.0
2.0
	D			5.0			6.5
3.5


Is this the best data arrangement for civplot or cihplot? Whats the best
way
to plot this?

*
*   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