------------------------------------------------------------------------------- help forciplot-------------------------------------------------------------------------------

Plots of confidence intervals

ciplotvarlist[ifexp] [inrange] [weight] [,by(byvar)missingci_options[horizontal|vertical]rcapopts(rcap_options)scatter_options]

Description

ciplotproduces a display of means and confidence intervals. Means are shown by point symbols and intervals by capped bars.ciis used for the calculations.aweights andfweights are allowed; see help on weights.

Remarks(note added August 2011)

For fuller flexibility, consider using statsby first and then standard graphics commands (Cox 2010).

Options

by()defines a grouping variable, which is treated as categorical, not measured.

missing, applicable only withby(), specifies that results for groups with missing values ofbyvarshould be included in the display. The default is to exclude them.

ci_optionsare options of ci apart fromseparator().

horizontalproduces a horizontal display. The default is vertical.

rcapopts(rcap_options)refers to other options of graph twoway rcap.

scatter_optionsrefers to options of graph twoway scatter.

Examples

. webuse citytemp

. ciplot heatdd

. ciplot heatdd cooldd

. ciplot heatdd, by(division)

. ciplot heatdd cooldd, by(division) xla(, ang(45))

. ciplot heatdd, hor

. ciplot heatdd cooldd, hor

. ciplot heatdd, by(division) hor

. ciplot heatdd cooldd, by(division) hor

AuthorNicholas J. Cox, Durham University n.j.cox@durham.ac.uk

AcknowledgmentsMarc Kaulisch reported a problem with blanking out axis titles.

ReferencesCox, N.J. 2010. Speaking Stata: The statsby strategy.

Stata Journal10: 143-151.

Also seeManual:

[R] ci