GSS | R Documentation |
This data set is drawn from the U.S. General Social Survey (GSS) for years between 1972 and 2016.
data("GSS", package = "nestedLogit")
A data frame with 44091 rows and 3 columns.
A factor representing parents' attained level of education
(highest "degree" obtained), recording
the higher of mother's and father's education, with levels "l.t.highschool"
,
"highschool"
, "college"
, and "graduate"
.
The respondent's level of education, a factor with the same levels
as parentdeg
.
The year of the survey, between 1972
and
code2016.
General Social Survey, NORC, The University of Chicago https://www.norc.org/Research/Projects/Pages/general-social-survey.aspx.
nestedLogit
.
round(100*with(GSS, prop.table(table(degree, parentdeg), 2)))
m.GSS <- nestedLogit(degree ~ parentdeg*year,
continuationLogits(c("l.t.highschool", "highschool",
"college", "graduate")),
data=GSS)
car::Anova(m.GSS)
summary(m.GSS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.