Hi Phil,
I am trying to set starting values for the a1 parameter in a multiple group model. I should qualify this by saying I am fairly new to the mirt package, so sorry if this questions is redundant or simple. In the simplest case, I want the starting values to be the same for both groups, but different for each item. I started by just trying to fix all loadings to the same value. Which brings me to my next question...the value I provided was a standardized factor loading. On what scale are the values provided to the START command? Anyway, I'm not even quite sure if I set this up correctly. But it did not work. I received this error: "Error in if (regexpr("-", tmp[j]) > 1L) { : missing value where TRUE/FALSE needed". I would eventually like to be able to provide different starting values for each item, once I can figure out how to get the code to work. Any help is much appreciated! The code is provided below:
newmodel <- 'F = 1-8
START = (1:8, a1, .9)'
mod <- mirt.model(mAAvW[ ,1:8], newmodel)
refmodel <- multipleGroup(data = mAAvW[ ,1:8], model = mod, group = mAAvW$group, SE = TRUE,
invariance = c('free_means', 'free_var', itemnames))
Thanks,
Pega