LightMargolin1971 | R Documentation |
The data, taken from \insertCitelm71;textualANOFA, is an example where the educational aspiration of a large sample of N = 617 adolescents. The participants are classified by their gender (2 levels) and by their educational aspiration ( complete secondary school, complete vocational training, become college teacher, complete gymnasium, or complete university; 5 levels).
LightMargolin1971
An object of class data.frame.
library(ANOFA)
options(superb.feedback = 'none') # shut down 'warnings' and 'design' interpretation messages
# Lets run the analysis
L <- anofa( obsfreq ~ vocation * gender, LightMargolin1971)
summary(L)
# a quick plot
anofaPlot(L)
# Some simple effects.
e <- emFrequencies(L, ~ gender | vocation )
summary(e)
# some contrasts:
e <- emFrequencies(L, ~ vocation | gender )
f <- contrastFrequencies(e, list(
"teacher college vs. gymnasium"=c( 0, 0, 1,-1, 0),
"vocational vs. university" = c( 0, 1, 0, 0,-1),
"another" = c( 0, 1,-1,-1,+1)/2,
"to exhaust the df" = c( 4,-1,-1,-1,-1)/4
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.