title: How to apply a weight variable for logistic regression?
body: <p>Here comes a probably very easy question about how to apply a weight variable in R.</p>
  
  <p>I use the ANES 2013 Internet Recontact Survey dataset. Here I have the variable weight, which must be used in order to generalize to population.</p>
  
  <p>My question is very simple: How do I apply the weight for logistic regression?</p>
  
  <p>My best guess will be:</p>
  
  <pre><code>fit.gov.trust &lt;-glm(gov.trust ~ party.contact:weight, family=binomial(link="logit"))
  </code></pre>
  
  <p>But I am not sure at all.</p>