inversePredLm: Predict x from y in a linear model

Description Usage Arguments Value Examples

Description

Predict x from y in a linear model

Usage

1
inversePredLm(y, fit)

Arguments

y

The y value.

fit

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

Value

The x value corresponding to the given y.

Examples

1
2
fit <- lm(mpg~hp, data=mtcars)
inversePredLm(15, fit)

stevehoang/assayr documentation built on May 24, 2019, 7:20 a.m.