Skip to content

Commit

Permalink
fixed MD nominal wrong starting slopes
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed May 17, 2013
1 parent a5de864 commit a4fef96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/LoadPars.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ LoadPars <- function(itemtype, itemloc, lambdas, zetas, guess, upper, fulldata,
names(val) <- c(paste('a', 1:nfact, sep=''), paste('d', 0:(K[i]-1), sep=''), 'c')
}
if(itemtype[i] == 'nominal'){
val <- c(rep(.5, nfact), 0, rep(.5, K[i] - 2), K[i]-1, rep(0, K[i]))
val <- c(lambdas[i,], 0, rep(.5, K[i] - 2), K[i]-1, rep(0, K[i]))
names(val) <- c(paste('a', 1:nfact, sep=''), paste('ak', 0:(K[i]-1), sep=''),
paste('d', 0:(K[i]-1), sep=''))
}
Expand Down

0 comments on commit a4fef96

Please sign in to comment.