Bar-on-bar plots of confidence intervals
cibplot varlist [if exp] [in range] [weight] [, by(byvar) missing ci_options [horizontal | vertical] baropts(bar_options) rcap_options]
Description
cibplot produces a display of means and confidence intervals. Means are shown by heights or lengths of thick bars and intervals by capped bars. ci is used for the calculations. aweights and fweights are allowed; see help on weights.
Options
by() defines a grouping variable, which is treated as categorical, not measured.
missing, applicable only with by(), specifies that results for groups with missing values of byvar should be included in the display. The default is to exclude them.
ci_options are options of ci apart from separator().
horizontal produces a horizontal display. The default is vertical.
baropts(bar_options) refers to other options of graph twoway bar. Note that base(0) bcolor(none) are among the default choices. The first may produce labelling which users might wish to modify.
rcap_options refers to options of graph twoway rcap.
Examples
. webuse citytemp
. cibplot heatdd cooldd
. cibplot heatdd, by(division) yla(0(1000)7000, ang(h))
. cibplot heatdd cooldd, hor
. cibplot heatdd, by(division) hor xla(0(1000)7000)
Author
Nicholas J. Cox, University of Durham n.j.cox@durham.ac.uk
Also see
Manual: [R] ci
On-line: help for ci, serrbar, ciplot (if installed)