# NOT RUN {
data(Breakfast)
library(coin)
chisq_test(Breakfast, scores = list("Breakfast" = c(-2, -1, 0, 1, 2)))
freemanTheta(Breakfast)
### Example from Freeman (1965), Table 10.6
Input =(
"Social.adjustment 5 4 3 2 1
Marital.status
Single 1 2 5 2 0
Married 10 5 5 0 0
Widowed 0 0 2 2 1
Divorced 0 0 0 2 3
")
Table = as.table(read.ftable(textConnection(Input)))
freemanTheta(Table)
data(PoohPiglet)
kruskal.test(Likert ~ Speaker, data = PoohPiglet)
freemanTheta(x = PoohPiglet$Likert, g = PoohPiglet$Speaker)
# }
Run the code above in your browser using DataLab