This data set illustrates analyis of a multifactor observational study, with response given by subject's score on a vocabulary test, and factors for age group, education level, natality status, gender and year of the survey.
data("GSSvocab")A data frame with 28867 observations on the following 8 variables.
yeara factor with levels 1978 1982 1984 1987 1988 1989 1990 1991 1993 1994 1996 1998 2000 2004 2006 2008 2010 2012 2014 2016. Data are included from the GSS for each of these years.
gendera factor with levels female male
nativeBornWas the respondent born in the US? A factor with levels no and yes.
ageGroupa factor with levels 18-29 30-39 40-49 50-59 60+, grouped age of the respondent.
educGroupa factor with levels <12 yrs 12 yrs 13-15 yrs 16 yrs >16 yrs, grouped education level of the respondent. 12 years corresponds to high school graduate, 16 years to college graduate.
vocabNumber of words out of 10 correct on a vocabulary test
ageage of the respondent in years
educyears of education of the respondent
This file includes the years of the GSS for which the vocab and nativeBorn items were included.
# NOT RUN {
data(GSSvocab)
# }
Run the code above in your browser using DataLab