mypvalue: My bootstrap p-value

Description Usage Arguments Details Value Examples

View source: R/mypvalue.R

Description

Calculates p-value, rejection regions, and plots the t-distribution for a given t-value.

Usage

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

Arguments

t0

the calculated t-statistic

xmax

the maximum x value to include on the plot

n

the size of the sample used to calculate the t-statistic

alpha

used to define the width of the confidence interval as 1-alpha

Details

Given a calculated t-value and the size of the sample used to calculate it, returns a plot of the t-distribution, the rejection quantile, and the p-value.

Value

q, quantile of the rejection region

p, the p-value

Examples

1
t0 = 2;mypvalue(t0=t0)

Nat-Geo/math4753 documentation built on April 16, 2020, 12:35 a.m.