R/subjEIS.R

Defines functions subjEIS

Documented in subjEIS

subjEIS <- function(x){

	ItemExp <- matrix(NA,nrow = x$nitem, ncol=x$nsubj)

	for(it in 1:x$nitem){
		evals <-  x$OCC[which(x$OCC[,1] == it),3] %*% x$OCC[which(x$OCC[,1] == it),-c(1:3)]
		ItemExp[it,] <- approx(x=x$evalpoints, y=evals, xout=x$subjtheta)$y
	}
	
	return(ItemExp)
	
	
}

Try the KernSmoothIRT package in your browser

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

KernSmoothIRT documentation built on March 26, 2020, 7:42 p.m.