inst/GRM/global.R

thetas <- seq(from=-6, to=6, by=0.1)
N = length(thetas)

# define a generic probability function 
Pfun <- function(alpha=1, theta, delta, D=1){
  z = D*alpha*(theta-delta)
  P = 1/(1 + exp(-z))
  return(P)
}

Try the irtDemo package in your browser

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

irtDemo documentation built on May 2, 2019, 2:08 p.m.