minMax: Find the minimum or maximum of a quadratic function of x in a...

View source: R/minMax.R

minMaxR Documentation

Find the minimum or maximum of a quadratic function of x in a linear model

Description

Find the minimum or maximum of a quadratic function of x in a linear model

Usage

minMax(M, variable = "")

Arguments

M

a linear model object created with lm

variable

The name of the variable as a string

Examples

minMax(M = lm(data = mtcars, mpg ~ wt + I(wt^2)), variable = "wt")

prox9974/soc429Code documentation built on June 16, 2022, 3:41 a.m.