Skip to main content
4 of 6
edited tags
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663

Why inverse of 'predict' function in r can not be used for dependent variable prediction in linear model

When a regression is calculated with a simple linear model that returns intercept and slope for an equation like this y=a + bx one can predict y (the response variable) based on that equation. Equally one could rearrange for x; x={y-a}/b and calculate the value of x. This isn't available in R's predict() function but can easily be done. Can one do this calculation and still be statistically sound?

USER_1
  • 201
  • 3
  • 9