plotCI {MCPAN}R Documentation

Plot confidence intervals

Description

A function for convenient plotting of confidence intervals.

Usage

## Default S3 method:
plotCI(x, ...)
## S3 method for class 'sci'
plotCI(x, ...)
## S3 method for class 'sci.ratio'
plotCI(x, ...)
## S3 method for class 'confint.glht'
plotCI(x, ...)

Arguments

x

An object of class "sci", "sci.ratio" or "conf.int.glht" or a list with elements estimate, containing a numeric vector,conf.int, containing a matrix with two columns, giving the lower and upper bounds, and a string alternative, one of "two.sided", "less", "greater"

...

additional arguments to be passed to plotCII and plot, see plotCII for details

Details

Plots the estimates, upper and lower limits using points and segments. The names of estimate are passed as labels of the confidence intervals. If infinite bounds occur, the plot region is limited by the most extreme non infinite bound or estimate.

Value

A plot.

See Also

Internally, the function plotCII is used.

Examples


x=c(8,9,9,18,39,44)
n=c(2000,2000,2000,2000,2000,2000)

x<-binomORci(x=x, n=n, names=c("0","120","240","480","600","720"))

plotCI(x, lines=1)



[Package MCPAN version 1.1-21 Index]