inverse_predict: Generic function to do inverse prediction.

Description Usage Arguments Value Examples

Description

Predict x from y in a model object.

Usage

1
inverse_predict(object, y)

Arguments

object

A model object. Currently only 'lm' and 'drc' class model objects are supported.

y

The y value.

Value

The x value corresponding to the given y.

Examples

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

object <- drc::drm(mpg~hp, data=mtcars, fct= drc::LL.4())
inverse_predict(object, 15)

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