R/varr.R

"varr" <-
function(x)
 {
rxy <- x$Rxy
n <- x$n
rb <- rbar(x)
vr <- sum(n*(rxy-rb)^2,na.rm=TRUE)/sum(n,na.rm=TRUE)
return(vr)
}

Try the psychometric package in your browser

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

psychometric documentation built on Nov. 6, 2023, 1:06 a.m.