2
$\begingroup$

My Y variable varies between 0 and 1 with increments of 0.067. I have a lot of zeros in my data. My questions are:

  1. Is the residual vs. fitted plot below OK. Or as suggested in this link: Heteroscedasticity in residuals vs. fitted plot and this link: How should I interpret this residual plot? is there a floor effect? Do I need to consider a different type of model, perhaps a logistic model? residual vs. fitted plot

  2. Neter et al (1989) in p247 advises 'residuals should be plotted against each independent variables.' If moderate heteroscedasticity is not an issue in residual vs. fitted plot, do I have to check for heteroscedasticity in residual vs. each individual X variable? Asking the same question differently, if my residual vs. fitted plot is fine in model Y ~ X1 + X2 + X3 + X4 + X5 (not the one in the image above), but residual vs. X4 shows heteroscedasticity, what do I do?

$\endgroup$
2
  • $\begingroup$ Did you fit a model which assumed normally distributed errors? $\endgroup$
    – André.B
    Commented Feb 27, 2019 at 3:24
  • $\begingroup$ Yes. Ordinary-least squares model, lm() in R $\endgroup$
    – Guphadi
    Commented Feb 28, 2019 at 15:03

2 Answers 2

1
$\begingroup$

You have count data - use a model appropriate for this: Based on your description of the data, and your residual plot, I suggest that your response variable is a proportion value based on a fixed denominator, which means that it is based on an underlying set of count data (i.e., positive integers up to a fixed known maximum value). That is why you get lines of values in your residual plot when you use OLS estimation. In such cases, the error term in them model is not normally distributed, and you will probably get a better fit from a model designed for count data (e.g., a binomial GLM).

$\endgroup$
2
  • 1
    $\begingroup$ I wish I had got this answer much earlier. I eventually ran a NB regression. As you have pointed out, the data was a count divided by the maximum-possible count. As there were many zeros and overdispersion problem, I used NB regression with MASS package in R. $\endgroup$
    – Guphadi
    Commented Mar 4, 2019 at 23:06
  • $\begingroup$ NB model is always a good starting place for count data, sometimes with zero-inflation added. $\endgroup$
    – Ben
    Commented Mar 4, 2019 at 23:52
1
$\begingroup$

I would use a different type of model. The lm() function in R fits a model with normally distributed errors. The normal distribution is unbounded, meaning it can take any value between -Inf and Inf. In contrast, your response is bounded. Heteroscedasticity (variance changing with the fitted response value) is an issue for models with normal errors as they assume a constant variance.

  1. You should fit a model with binomial errors. You can do this with:

glm(l Y ~ X1 + X2 + X3 + X4 + X5, family = binomial, data = df)

GLMs with binomial errors cannot be checked by eye easily and you should not expect them to look like a white-noise residual plot (like the ones we hope to see with lms). Unfortunately, there is no simple way to check the assumptions of a binomial glm.

  1. In the case of multiple linear regression you do not need to plot the residuals by each variable. The residual v.s. fitted plot is typically enough.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.