mums a three level factor
which can be used in a multinomial Logistic model or mumsB a two level factor suitable for binary logistic model.
data(Mums)1 is for strong encouragement,
2 is for some encouragement and
3 for no encouragement/discouragement1is C1, 2 is C2, 3 is D and 4 is E1 is 16-18, 2 is 19-20 and 3 is 20-301 is male and 2 is female1 is white, 2 is black, 3 is asian and 4 is other1 is greater or equal to 2 A levels,
2 is HND or more than 5 GCSE's,
3 is less than 5 GSCSE's ar none above and
4 no formal qualification0 is no encouragement or some encouragement 1 is for strong encouragementdata(Mums)
MM<-xtabs(~mums+qual, data=Mums)
mosaicplot(MM, color=TRUE)
MM<-xtabs(~mums+ethn+gender, data=Mums)
mosaicplot(MM, color=TRUE)
Run the code above in your browser using DataLab