Tried cor(x1,y) and I get a 0.09. However, when I put the x1 in the lm model, its coefficient is negative. Does it make sense?
Asked
Active
Viewed 22 times
0
nobodyishere
- 339
cor(y,x1)be contradict with the positive coefficients of x1 inlm. – nobodyishere Jul 19 '22 at 02:52