pgt | R Documentation |
A function to draw a Student's t distribution and shade a region defined by the quantile
pgt(quantile, df = 100, tail = "upper")
quantile |
The quantile value (t value) to be evaluated. Note that quantile should be positive if a two-tailed result is requested. |
df |
Degrees of freedom for the t distribution. Note that the default is 100. |
tail |
Area(s) to be shaded on the graph. If |
Specifying extremely high or low quantiles may not yield
visible shaded areas if the regions are beyond the limits of the X axis
scale of the graph.
In addition, probabilities are rounded to five
decimal places and will display as zero if below .000005. Use the pt
function in this case.
This function can be very helpful in instructional situations and can replace the "t table" from textbooks.
Bruce Dudek bruce.dudek@albany.edu
pgt(-1.76, df=25, tail="lower")
pgt(1.76, df=25, tail="upper")
pgt(1.76, df=25, tail="two")
pgt(2.31, df=10, tail="lower")
# don't use this next example form with tail="two"
# instead use the following example example form
pgt(-1.7, df=10, tail="two")
pgt(1.7, df=10, tail="two")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.