Learn R Programming

IPSUR (version 1.5)

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

"plot"(x, hypoth.or.conf = 'Hypoth', ...)

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.

Details

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

See Also

normal.and.t.dist