Learn R Programming

binMto (version 0.0-7)

plot.binMto: Plot confidence intervals calculated using binMto.

Description

A plot function for confidence intervals calculated using binMto.

Usage

# S3 method for binMto
plot(x, ltyH0 = 3, H0line = 0,
 ltyCI = 2, main = NULL, xlab = NULL, ...)

Arguments

x

an object of class 'binMto' obtained from function binMto

ltyH0

numerical value specifying the line type of the vertical line in the plot, see ?par for options

H0line

a numerical value, specifying where to draw a vertical line in the plot

ltyCI

numerical value specifying the line type of the confidence intervals in the plot, see ?par for options

main

a main title as in ?plot

xlab

a x-axis label as in ?plot

further arguments as given in ?plot or ?par

References

The example below, see: Bretz, F. and Hothorn, L.A. (2002): Detecting dose-response using contrasts: Asymptotic power and sample size determination for binomial data. Statistics in Medicine 21, 3325-3335.

Examples

Run this code
# NOT RUN {
# 1)Simultaneous CI for Dunnett contrasts
# for the example in Table 1 of 

plot(binMto(x=c(9,19,21,21,24), n=c(20,43,42,42,41), names = c("Placebo",0.125,0.5,0.75,1) ))

# }

Run the code above in your browser using DataLab