Hi,I have a total of 80 items and 4 groups (named 1,2,3,4). Items 1-20 are the same for groups 1 and 2, 21-40 for groups 2 and 3, 41-60 for groups 3 and 4. Items 61-80 are exclusive applied to group 4. I have tried the following syntax:("grupos" is a factor vector with characters "1","2","3","4") "mYmirt" is a 0 and 1 matrix with NA to not observed response (also indicating the incomplete design above described)name <- 'old2PL'par <- c(a=1,b = -2)est <- c(TRUE,TRUE)P.old2PL <- function(par,Theta, ncat){b <- par[2]a <- par[1]P1 <- 1 / (1 + exp(-1*a*(Theta - b)))cbind(1-P1, P1)}lbound <- c(0, -Inf)ubound <- c(Inf, Inf)P.old2PLfunc <- createItem(name, par=par,lbound=lbound, ubound=ubound, est=est, P=P.old2PL)model.group <- mirt.model('F = 1-80,CONSTRAINB = (1-20,a,c(1,2)),(1-20,b,c(1,2)),CONSTRAINB = (21-40,a,c(2,3)),(21-40,b,c(2,3)),CONSTRAINB = (41-60,a,c(3,4)),(41-60,b,c(3,4)),PRIOR = (1-80, a, lnorm, 0.1991, 0,8143),
(1-80, b, norm, 0, 1)')mg <- multipleGroup(mYmirt, model=model.group ,group = grupos,c(rep('old2PL',vI)),customItems=list(old2PL=P.old2PLfunc),SE=TRUE,method='EM',quadpts=40,TOL=0.001,invariance=c('free_means','free_var'))Which returned the following message:Error: Prior type specified in PRIOR = ... not availableIn addition: Warning message:In UpdatePrior(PrepList, model, groupNames = Data$groupNames) :NAs introduced by coercionCould anyone help me?Thanks a lot,
Caio
--
You received this message because you are subscribed to the Google Groups "mirt-package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Phil,Thanks. Indeed, there was an error. It should be "0.8143". Now the message is : "Parameter 'a' does not exist for item 1".
I consider the original parameterization since I am interested in the respective standar errors and, as far as I know, I would need to use the Delta method, for example, if I consider the mirt's parameterization.
Also, the "c(1,2)" referres to that I want to keep that parameters as the same between groups 1 and 2. I could not find any example about the use of "OptionalGroup" argument, so I tried that. I could not find any example about the use of "OptionalGroup".
--
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package...@googlegroups.com.
Hi Phil,
Thank you very much for your answer. I was talking to a coleague of mine, he is also a "mirt" user, and he told me that it is not necessary to inform to "mirt" among which tests the items are common, since mirt recognizes that through the item names. I runned with succes a modified sytax and it seems that worked well. However, I have other points:1. It seems that more care is necessary on the choice the item hyperparameters (command PRIOR) since the multipleGroup did no run, in my case, for some choices. In these cases, I got the message “Prior type specified in PRIOR = ... not available”
2. I was not able to consider a user specified item response function using creatItem function along with multipleGroup function. I got the message “ Parameter 'a' does not exist for item 1”. It seems, as you said, that there is some bug. Let me know if I can help you on this.
Which negative opinions do you have about the "difficulty" parameter?
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package+unsubscribe@googlegroups.com.