Good morning. I am a competent (not sophisticated) Stata and SPSS user. Although I'm relatively new to R, I have learned to analyze unweighted data. But now I want to analyze the 2008 American National Election Study, which provides a single weight variable (v081010). In SPSS, I set the weight and proceed with the analysis. In Stata, I specify the weight within the command. How do I use the 2008 weight variable in R? Has anyone been analyzing this particular data set? Any insights would be greatly appreciated. Thank you. Hutch Pollock [[alternative HTML version deleted]]
R. Michael Weylandt
2012-Jun-19 15:24 UTC
[R] Analyzing 2008 ANES using the weight variable
Most modelling functions take a weights= argument so once you decide what sort of model you are looking for, that should be the way to proceed. But do be forewarned that there are a few kinds of "weights" in statistics and it's not standardized which is the default across different statistical softwares. Peter Dalgaard posted a nice summary of the differences on this list a few weeks back if you want to go digging through the archives. Best, Michael On Tue, Jun 19, 2012 at 9:33 AM, Hutch Pollock <hutchpollock at gmail.com> wrote:> Good morning. > > I am a competent (not sophisticated) Stata and SPSS user. Although I'm > relatively new to R, I have learned to analyze unweighted data. But now I > want to analyze the 2008 American National Election Study, which provides a > single weight variable (v081010). In SPSS, I set the weight and proceed > with the analysis. In Stata, I specify the weight within the command. How > do I use the 2008 weight variable in R? Has anyone been analyzing this > particular data set? Any insights would be greatly appreciated. Thank you. > > Hutch Pollock > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.