Last chance! 50% off unlimited learning
Sale ends in
data(Abortion)
Sex
"Female", "Male"
2 Status
"Lo", "Hi"
3 Support_Abortion
"Yes", "No"
}
Christensen, R. (1997). Log-Linear Models and Logistic Regression, New York, NY: Springer, p. 100, Example 3.5.2.
Sex
and Status
represent four independent samples, having
fixed Sex
-Status
marginal totals.
Thus the Sex:Status
association must be included in any loglinear model.
Support_Abortion
is a natural response variable.data(Abortion)
# example goes here
ftable(Abortion)
mosaic(Abortion, shade=TRUE)
# stratified by Sex
fourfold(aperm(Abortion, 3:1))
# stratified by Status
fourfold(aperm(Abortion, c(3,1,2)))
Run the code above in your browser using DataLab