Skip to main content
added 5 characters in body; edited title
Source Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663

Why inverse of 'predict' function in rR 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=\frac{\left(y-a\right)}{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?

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=\frac{\left(y-a\right)}{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?

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=\frac{\left(y-a\right)}{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?

LaTeXing
Source Link
Avraham
  • 3.9k
  • 26
  • 46

When a regression is calculated with a simple linear model that returns intercept and slope for an equation like this y=a + bx$y=a + bx$ one can predict y (the$y$, the response variable), based on that equation. Equally one could rearrange for x; x={y-a}/b$x$: $x=\frac{\left(y-a\right)}{b}$ and calculate the value of x$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?

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?

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=\frac{\left(y-a\right)}{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?

Tweeted twitter.com/StackStats/status/1422437108845793324
edited tags
Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663
edited tags
Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663
Loading
edited tags
Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663
Loading
Source Link
USER_1
  • 201
  • 3
  • 9
Loading