xopt | R Documentation |
Evaluate the optimal x and its SE in a quadratic LM.
xopt(model, se = TRUE)
model |
a fitted lm or glm of the form |
se |
whether to report the standard error. |
List containing est
(estimated optimal x) and se
(standard
error), or if se = FALSE
a simple number.
The standard error is evaluated using delta method approximation.
The optimal x is the peak or bottom of the quadratic curve. See p. 54 in Magnusson (2002).
Magnusson, A. (2002). Survival rates of coho (Oncorhynchus kisutch) and chinook salmon (O. tshawytscha) released from hatcheries on the U.S. and Canadian Pacific coast 1972–1998, with respect to climate and habitat effects. M.S. thesis, University of Washington.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.