Description Usage Arguments Value Examples
Predict x from y.
1 2 | ## S3 method for class 'lm'
inverse_predict(object, y)
|
object |
An object of class lm with an intercept and a single coefficient. |
y |
The y value. |
The x value corresponding to the given y.
1 2 | object <- lm(mpg~hp, data=mtcars)
inverse_predict(object, 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.