MCPAN (version 1.1-21)

plotCI: Plot confidence intervals

Description

A function for convenient plotting of confidence intervals.

Usage

# S3 method for default
plotCI(x, ...)
# S3 method for sci
plotCI(x, ...)
# S3 method for sci.ratio
plotCI(x, ...)
# S3 method for 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

Value

A plot.

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.

See Also

Internally, the function plotCII is used.

Examples

Run this code
# NOT RUN {
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)


# }

Run the code above in your browser using DataCamp Workspace