| Vietnam | R Documentation |
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 response categories were:
ADefeat North Vietnam by widespread bombing and land invasion
BMaintain the present policy
CDe-escalate military activity, stop bombing and begin negotiations
DWithdraw military forces Immediately
data(Vietnam)
A frequency data frame with 40 observations representing a 2 x 5 x 4 contingency table on the following 4 variables.
sexa factor with levels Female Male
yearyear of study, an ordered factor with levels
Freshmen, Sophomore, Junior, Senior, Grad student
responsea factor with levels A B C D
Freqcell frequency, a numeric vector
For some analyses, it is useful to treat year as numeric,
and possibly assign grad students a value year=7.
Aitken, M. etal, 1989, Statistical Modelling in GLIM
Friendly, M. (2000), Visualizing Categorical Data, SAS Institute, Cary, NC, Example 7.9.
data(Vietnam)
## maybe str(Vietnam) ; plot(Vietnam) ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.