interval.plot: Interval Plot

View source: R/interval.plot.R

interval.plotR Documentation

Interval Plot

Description

Function to graph intervals

Usage

interval.plot(ll, ul, parameter = 0)

Arguments

ll

vector of lower values

ul

vector of upper values

parameter

value of the desired parameter (used when graphing confidence intervals)

Value

Draws user-given intervals on a graphical device.

Author(s)

Alan T. Arnholt <arnholtat@appstate.edu>

Examples

set.seed(385)
samples <- 100
n <- 625
ll <- numeric(samples)
ul <- numeric(samples)
xbar <- numeric(samples)
for (i in 1:samples){
  xbar[i] <- mean(rnorm(n, 80, 25))
  ll[i] <- xbar[i] - qnorm(.975)*25/sqrt(n)
  ul[i] <- xbar[i] + qnorm(.975)*25/sqrt(n)
  }
interval.plot(ll, ul, parameter = 80)


PASWR documentation built on May 15, 2022, 5:05 p.m.