View source: R/upsilon.gof.statistic.R
| upsilon.gof.statistic | R Documentation |
(FOR INTERNAL USE ONLY) Calculates the Upsilon statistic for a Goodness-of-Fit (GoF) test.
upsilon.gof.statistic(x, p = rep(1/length(x), length(x)), rescale.p = TRUE)
x |
a numeric vector or one-column matrix representing observed counts. |
p |
a numeric vector of probabilities
of the same length as |
rescale.p |
a logical scalar.
If |
This statistic measures the discrepancy between observed counts and expected probabilities.
A numeric value of the Upsilon Goodness-of-Fit statistic.
library("Upsilon")
counts <- c(10, 20, 30)
upsilon.gof.statistic(counts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.