R/costmse.R

Defines functions cost.mse

Documented in cost.mse

#' @title cost.mse
#' @description mse
#' @export cost.mse
#' @return Mean Square Error
#' @param y Response
#' @param yhat The predicted value

cost.mse <- function(y, yhat)
{
    mean((y - yhat)^2)
}

Try the freestats package in your browser

Any scripts or data that you put into this service are public.

freestats documentation built on May 30, 2017, 4:27 a.m.