Learn R Programming

IPSUR (version 1.3)

plot: Plotting Hypothesis Tests

Description

This function allows the user to plot a saved hypothesis test object, including normal curves, critical values, shading, and p-values. It requires the HH package and the normal.and.t.dist function written by Dr. Richard Heiberger. Please note that a much better version of this function is currently under development.

Usage

## S3 method for class 'htest':
plot(x, hypoth.or.conf = 'Hypoth', \ldots)

Arguments

x
an htest object that is the result of a hypothesis test.
hypoth.or.conf
a switch to choose between plots for hypothesis tests or confidence intervals
...
further arguments to be passed to or from other methods.

Value

  • A plot of the normal or Student's t distribution associated with the hypothesis test or confidence interval. Critical values and p-values are displayed. } author{G. Jay Kerns email{gkerns@ysu.edu}} seealso{code{normal.and.t.dist}} keyword{misc}

Details

This is a plot method for hypothesis tests or confidence intervals which uses the normal.and.t.dist function in the HH package.