iota.c(ltm.obj, M = NULL, prior = NULL, logL.fun = NULL, rirm = NULL, range.int = c(-Inf, Inf))
ltm
, grm
, or gpcm
functions).
Either ltm.obj or logL.fun must be supplied. If a log-likelihood function is supplied directly, it must take three arguments: z, a vector of latent trait values, dat, a data matrix, and i, a row index. logL.fun must return the vector of log-likelihoods for the vector of latent trait values, for a single response pattern (i.e., the function must return the vector of log-likelihoods for the trait vector z, for the response pattern in row i of data matrix dat).
The number of Monte Carlo replications M must be supplied.
If an ltm.obj object is not specified, the reference prior in the form of a density function must also be supplied. In that situation, a function that randomly generates a matrix of response patterns must also be supplied to rirm. The rirm function must take as its first argument a number of response patterns M, and as the second argument a vector of latent trait values m.theta, returning a matrix of response patterns.
If an ltm.obj object is specified, the reference prior is assumed to be the Jeffreys prior, and rirm is assumed to be the IRT model used to create ltm.obj.
Note that currently, range.int must be within [-10, 10] for grm
and gpcm
objects. If a grm
or gpcm
object is supplied and range.int is outside this range, the range will be reset to [-10, 10].
iota
, rJeffreys
, Jeffreys
, ltm
, grm
, gpcm
ltm.lsat <- ltm(LSAT~z1, IRT=FALSE)
iota.c.lsat <- iota.c(ltm.lsat, M=100) # typically more Monte Carlo replications would be used
iota.c.lsat
Run the code above in your browser using DataLab