nulldplot: Null distribution plot

Description Usage Arguments Details Value Author(s) Examples

View source: R/rda.R

Description

A plot comparing a null distribution to a test statistic.

Usage

1
2
nulldplot(to, tH, xlab = "tH", ncol = "lightblue", ocol = "red",
  otype = 1, xlim = range(c(to, tH)), ...)

Arguments

to

(scalar) The observed value of the test statistic.

tH

(vector) Values of the statistic from the null distribution.

xlab

(character) Label for the x-axis.

ncol

(character) Color of the null histogram.

ocol

(character) Color for the observed value.

otype

(character) Color for the observed value line type.

xlim

(vector) Range for the x-axis.

none
...

Additional plotting characters.

Details

rda func more details

This function produces a plot that facilitates comparison between a distribution of values of a scalar (e.g. a null distribution of a statistic) to a particular value (e.g. the observed value of the statistic).

Value

nothing

Author(s)

Peter Hoff

Examples

1
nulldplot(2,rnorm(1000))

MikeKozelMSU/mcmcFunc documentation built on May 22, 2019, 5:31 p.m.