Description Usage Arguments Value Author(s) Examples
This function takes as input a numerical vector/obervations x
, and a vector of expected probability p
then calculate the Chi Squared Statistic
based on these information.
1 |
x |
a numeric vector. |
p |
a vector of proability, vector of uniform probability if it is unspecified |
plot |
specifies whether or not to make barplot of the observed data and the expectation |
Returns the Chi Squared test statistic.
Nguyen Khanh Le Ho
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.