Thanks, Nick. Your solution answers my query. Please accept my sincere
apologies for ignoring your earlier advice.
Shehzad
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: 30 June 2008 19:49
To: [email protected]
Subject: st: RE: set: simple question - confidence interval plot
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/
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.101 / Virus Database: 270.4.3/1526 - Release Date: 30/06/2008
08:43
*
* 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/