getMinR2 | R Documentation |
This function calculates (1 - r-square) for a set of predicted values (predY) relative to actual empirical values (y).
getMinR2(predY, y, standardize = FALSE)
predY |
a vector of numbers that is the fitted data generated from a model. |
y |
a vector of numbers that were fitted by a model to produce predY. |
standardize |
A boolean that specifies whether to standardize the scores before calculating the BIC. Standardization is useful if you want to combine different DVs into a single BIC (e.g., RT and accuracy). DEFAULT = FALSE. |
(1-r2) this is used as the value to be minimized by an optimization program
getMinR2 (fittedY, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.