| indchisq | R Documentation |
This function is for the independence test of two categorical variables
indchisq(O, conf.level = 0.95)
O |
an observed matrix has |
conf.level |
confidence level for testing hypothesis, default is |
output for the independence test
Plackett, R. L. (1983). Karl Pearson and the Chi-Squared Test. International Statistical Review / Revue Internationale de Statistique, 51(1), 59–72. <doi.org/10.2307/1402731>.
v <- c(80,60,150,50,40,20)
X<- matrix(v,ncol=2,byrow = TRUE) # 3x2
indchisq(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.