Punishment {vcd} | R Documentation |
Data from a study of the Gallup Institute in Denmark in 1979 about the attitude of a random sample of 783 persons towards corporal punishment of children.
data("Punishment")
A data frame with 36 observations and 5 variables.
E. B. Andersen (1991), The Statistical Analysis of Categorical Data, page 208.
E. B. Andersen (1991), The Statistical Analysis of Categorical Data. 2nd edition. Springer-Verlag, Berlin.
data("Punishment", package = "vcd") pun <- xtabs(Freq ~ memory + attitude + age + education, data = Punishment) ## model: ~ (memory + attitude) * age * education ## use maximum sum-of-squares test/shading cotabplot(~ memory + attitude | age + education, data = pun, panel = cotab_coindep, n = 5000, type = "assoc", test = "maxchisq", interpolate = 1:2)