Closed kwhkim closed 9 years ago
Wasn't able to reproduce with your code (those types aren't native to the master branch). I used this:
name <- 'old2PL'
par <- c(a = .5, b = -2)
est <- c(TRUE, TRUE)
P.old2PL <- function(par,Theta, ncat){
a <- par[1]
b <- par[2]
P1 <- 1 / (1 + exp(-1*a*(Theta - b)))
cbind(1-P1, P1)
}
x <- createItem(name, par=par, est=est, P=P.old2PL)
dat <- expand.table(LSAT7)
model <- 'F = 1-5
START = (1, a1, 0.0), (5, a, 0.0)
FIXED = (5, a)'
sv <- mirt(dat, model, c(rep('2PL',4), 'old2PL'), customItems=list(old2PL=x), pars = 'values')
tail(sv)
Seems to work fine now, thanks.
Oh I updated my fork and I works seamlessly. Thank you.
Since I have to use experimental items.. I pushed my modified package on my site...
Here's code to replicate the problem..
Check if the c for first item is 0...