R/Rsquared.R

Defines functions Rsquared

Documented in Rsquared

Rsquared <-
function(y.pre,y){
  SSR = sum((y.pre-mean(y))^2)
  SSE = sum((y-y.pre)^2)         
  R2 = SSR/(SSE+SSR)
  return
  R2
}

Try the MLRMPA package in your browser

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

MLRMPA documentation built on May 29, 2017, 10:17 a.m.