Follow-up: [R] Inverse prediction with R?
Bill Simpson
wsi at gcal.ac.uk
Tue Feb 22 15:18:19 CET 2000
You fit
y = a+b*x
Then you get the inverse regression estimate
x = (y-a)/b
I don't see what is hard about that.
As for the confidence interval for x, try bootstrapping:
- randomly sample your (x,y) data
- do the y = a+b*x fit
- get the estimate x = (y-a)/b
- use the bootstrapped x distribution to get your CI
Or use the formulas you saw in a book.
I don't see this as a hard programming project. (I am no ace R programmer
myself)
Bill
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list