Learn R Programming

vcdExtra (version 0.5-2)

Vietnam: Student Opinion About the War in Vietnam

Description

A survey of student opinion on the Vietnam War was taken at the University of North Carolina at Chapel Hill in May 1967 and published in the student newspaper. Students were asked to fill in ballot papers stating which policy out of A,B,C or D they supported. Responses were cross-classified by gender/year. The result is a 2 x 5 x 4 contingency table, with factors sex, yr and resp.

Usage

data(Vietnam)

Arguments

source

Aitkin, M. A., Anderson, D., Francis, B., & Hinde, J. Statistical Modelling in GLIM, Clarendon Press, 1989

Details

The response categories can be considered ordered in terms of attitude about the war in Vietnam: [object Object],[object Object],[object Object],[object Object]

References

Friendly, M. Visualizing Categorical Data, Cary, NC: SAS Institute, 2000, Appendix B.12.

Examples

Run this code
data(Vietnam)
str(Vietnam) 
# make it into a table
Vietnam.table <- xtabs(Freq ~ sex+yr+resp, data=Vietnam)
structable(Vietnam.table)

Run the code above in your browser using DataLab