plot.conint: Plot Method for Simultaneous Confidence Intervals

Description Usage Arguments Details Author(s) See Also Examples

Description

A method for the plot generic. It graphs both the upper and lower end-point functions of a confidence interval as an unfilled polygon.

Usage

1
2
## S3 method for class 'conint'
plot(x, border, col, ...)

Arguments

x

object of class conint

border, col

same usage as in polygon

...

further arguments to plot.default

Details

This is intended for plotting confidence intervals produced by the output of simconboot or rconint.

Author(s)

Wesley Graybill, Mingli Chen, Victor Chernozhukov, Ivan Fernandez-Val, Alfred Galichon

See Also

plot, lines.conint, points.conint

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(GrowthChart)
attach(GrowthChart)

nage <- 2 * pi * (age - min(age)) / (max(age) - min(age))
formula <- height ~ I(sin(nage))+I(cos(nage))+I(sin(2*nage))+I(cos(2*nage))+
            I(sin(3*nage))+I(cos(3*nage))+ I(sin(4*nage))+I(cos(4*nage))
j<-simconboot(nage,height,lm,formula)
plot(j)
points(nage,height)

detach(GrowthChart)

Example output

Loading required package: quantreg
Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve

Loading required package: splines

Rearrangement documentation built on May 1, 2019, 11:29 p.m.