title: Residuals but no fitted values from a regression model in R
body: <p>I did a simple regression analysis and wanted to plot the residuals against the fitted values to see their behaviour. Afterwards I wanted to check if the residuals are normally distributed. So I did:</p>
  
  <pre><code>summary(lm(Gesamt~PopTotal+HDI))
  
  residuen&lt;-summary(lm(Gesamt~PopTotal+HDI))$residuals
      fitted&lt;-summary(lm(Gesamt~PopTotal+HDI))$fitted.values
  plot(fitted,residuen)
  </code></pre>
  
  <p>The problem is, that,</p>
  
  <pre><code>summary(lm(Gesamt~PopTotal+HDI))$fitted.values
  </code></pre>
  
  <p>gives <code>NULL</code> as a result, so does that mean there are no fitted values? I guess this is due to some missing values, but I don't know. And how can R calculate residudals but not the fitted values?</p>
  
  <p>My data set can be found here: <a href="http://www.sendspace.com/file/8e27d0" rel="nofollow">http://www.sendspace.com/file/8e27d0</a></p>