'Error in x y.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ
When I'm running the lm model with a data frame of 65461 entries, I get residuals back for 65354 entries. Therefore, I get the following error while running a plot:
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ
Does anyone know how to solve this?
The code I used:
lm_model109 <- lm(mydata$Volume ~ (mydata$1+ mydata$2+ mydata$3+mydata$4+mydata$5)*mydata$6*log(mydata$7)*log(mydata$8))
residuals_lm109 <- resid(lm_model109)
plot(mydata$5,residuals_lm109)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
