Displaying 1 result from an estimated 1 matches for "wvs1981_v20090906".
2011 Feb 27
1
stata.get labels glm()
...t ONLY the country variable to a factor, such that glm() automatically controls for countries. With the latter point I am stuck, I managed to extract the country labels but don't know how to match this information now with my country variable 'v2'.
> wvs1981 <- stata.get("C:/wvs1981_v20090906.dta", lowernames = FALSE, convert.dates = TRUE, convert.factors = FALSE, missing.type = FALSE, convert.underscore = TRUE, warn.missing.labels = TRUE, force.single = TRUE, allow=NULL, charfactor=FALSE)
> countrylabels <- attributes(wvs1981)$stata.info$label.table$v2
> countrylabels...