Defines functions R2

Documented in R2

R2 <- function(Y,Ypred)
	Ypred <- as.numeric(Ypred)
	Y     <- as.numeric(Y)
		stop("The entries must have the same length.")
	return(1 - mean((Y-Ypred)^2)/mean((Y-mean(Y))^2))

Try the DiceEval package in your browser

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

DiceEval documentation built on May 2, 2019, 2:09 a.m.