inverse_predict.lm: Inverse predict based on a linear model object.

Description Usage Arguments Value Examples

Description

Predict x from y.

Usage

1
2
## S3 method for class 'lm'
inverse_predict(object, y)

Arguments

object

An object of class lm with an intercept and a single coefficient.

y

The y value.

Value

The x value corresponding to the given y.

Examples

1
2
object <- lm(mpg~hp, data=mtcars)
inverse_predict(object, 15)

hemoshear/assayr2 documentation built on Nov. 8, 2019, 6:13 p.m.