Produces a Q--Q plot of the p-values supplied\loadmathjax
plotp(pvals, plotversion ="qqconf",...)
Arguments
pvals: A vector of \mjseqn p--values
plotversion: Whether to use the qqconf version or the original
...: Other parameters to pass through to qqplot
and qqline
Details
After eliminating out of range \mjseqn p--values and missing values produces a Q--Q plot. If the package qqconf is unavailable or plotversion is set other than "qqconf" then the plot uses the function from base graphics. The line shown is through the quantiles (by default the 0.25 and 0.75).
If the package qqconf is available then the plot uses that package's function and as well as the Q--Q plot produces a confidence region. Parameters can be passed to qq_conf_plot to exert further control over the plot.
If plotversion is set to "qqconf" but package qqconf is not available then a warning is given and no plot is produced.
Returns
Invisibly returns a list consisting of - validp: The valid \mjseqn p--values
Author(s)
Michael Dewey
See Also
qqplot and qqline for the original plot and qq_conf_plot for the new version.