Description Usage Arguments Value Author(s) Examples
Calculate mean squared error (MSE) for vectors or matrices of observed and predicted values
1 |
obs |
A vector or a matrix/df (samples in rows, individual variables in columns) of observed values |
pred |
A vector or a matrix/df (samples in rows, individual variables in columns) of predicted values |
rsq |
Calculate R^2 (R-squared) instead of MSE? Defualt FALSE |
MSE or R^2 (single value if vectors are passed or a vector of length nrow(obs)
if matrices/df are passed, one value for each obs-pred column pair)
N. F. Grinberg, ng414@medschl.cam.ac.uk
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.