| qqchisq1 | R Documentation |
Accepts \chi^2 test statistics as input and converts them to
-\log_{10}(p) values assuming 1 degree of freedom. The conversion
uses log-space computation via pchisq(..., log.p = TRUE), which
avoids floating-point underflow for very large test statistics and is
numerically precise well beyond .Machine$double.xmin. Produces the
same style of plot as qq and qqlog.
qqchisq1(chisq_vector, ...)
chisq_vector |
A numeric vector of |
... |
Other arguments passed to |
No return value, called for plotting side effects.
chisq_vals <- stats::rchisq(1e5, df = 1)
qqchisq1(chisq_vals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.