Skip to content
Prev 179964 / 398513 Next

predict function the other way around

Why not use the x=T and y=T paramemters and see if :

linearmodel=lm(y~x, x=T, y=T)linearmodel$model
(linearmodel$model)
    y x
1  2 1
2  4 2
3  6 3
4  8 4
5 10 5

.... give you useful results. If you want to interpolate or  
extrapolate, then search for threads regarding those tasks.