getMinLmR2 | R Documentation |
This function calculates a linear model and returns (1 - r-square).
getMinLmR2(x, y)
x |
a vector of numbers that is the predictor variable for a linear model. |
y |
a vector of numbers that the outcome variable for a linear model. |
(1-r2) this is used as the value to be minimized by an optimization program
min.lm.r2 (x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.