R/alpha.R

"alpha" <-
function(x)
{
x <- na.exclude(as.matrix(x))
Sx <- sum(var(x))
SumSxi <- sum(apply(x,2,var))
k <- ncol(x)
alpha <- k/(k-1)*(1-SumSxi/Sx)
return(alpha)
}

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.