Description Usage Arguments Details Value Examples
Calculates p-value, rejection regions, and plots the t-distribution for a given t-value.
1 | mypvalue(t0, xmax = 4, n = 20, alpha = 0.05)
|
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 |
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.
q, quantile of the rejection region
p, the p-value
1 | t0 = 2;mypvalue(t0=t0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.