Learn R Programming

IPSUR (version 3.0)

plot: Plotting Hypothesis Tests

Description

Plot saved hypothesis test objects, 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 htest
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

Examples

Run this code
# NOT RUN {
plot(t.test(rnorm(10)))
# }

Run the code above in your browser using DataLab