mypvalue: My p-value function

Description Usage Arguments Details Value Examples

View source: R/mypvalue from Lab 12.R

Description

Plots the p-value corresponding to a given t-statistic, sample size, and alpha

Usage

1
mypvalue(t0, xmax = 4, n = 20, alpha = 0.05)

Arguments

t0

value of the t statistic

xmax

the maximum value of x shown on the graph

n

the number of data points in the sample

alpha

value that determines the quantiles

Details

Plots rejection region for t values as well

Value

plot of p-value and rejection region for t distribution

Examples

1
mypvalue=function(t0=2,xmax=5,n=30, alpha=0.05)

sammcdonald9914/math4753d documentation built on April 19, 2020, 6:13 p.m.