Description Usage Arguments Details Value Warning Author(s) See Also Examples
profileci
numerically computes the profile likelihood confidence interval of the latent trait of an item response model for a given response vector or sum score(s).
1 |
fmodel |
Either a function with first argument |
y |
A m-dimensional vector or a s by m matrix of item responses, where in the latter case the posterior is computed by conditioning on the event that the response pattern is one of the s response patterns in |
zmin |
Minimum value of the latent trait when searching for the MLE. |
zmax |
Maximum value of the latent trait when searching for the MLE. |
lower |
Logical for whether to compute the lower bound of the confidence interval (default is TRUE). |
upper |
Logical for whether to compute the upper bound of the confidence interval (default is TRUE). |
level |
Confidence level as a value in the open unit interval (default is 0.95). |
... |
Additional arguments to pass to |
This function solves for the profile likelihood confidence interval using a root-finding approach. This can be used as an alternative to using the Fisher or observed information to compute a Wald confidence interval for the latent trait.
zeta |
Maximum likelihood estimate of the latent trait. |
post |
Value of the log-likelihood function at the maximum likelihood estimate of the latent trait. |
lower |
Lower bound of the confidence interval. |
f.lower |
Value of the log-likelihood function at |
upper |
Upper bound of the confidence interval. |
f.upper |
Value of the log-likelihood function at |
Finding the confidence interval is not guaranteed. Inspection of the profile of the posterior (perhaps by using posttrace
) is recommended to verify that zmin
and zmax
are set appropriately. Problems can arise for posterior distributions that are multimodal or where no (finite) mode exists.
Timothy R. Johnson
See uniroot
for details on the root-finding function, and postsamp
for the function that finds the MLE.
1 2 3 4 5 6 | alph <- c(1.27,1.34,1.14,1,0.67) # discrimination parameters
beta <- c(1.19,0.59,0.15,-0.59,-2) # difficulty parameters
gamm <- c(0.1,0.15,0.15,0.2,0.01) # lower asymptote parameters
# profile confidence interval given a sum score of 3
profileci(fmodel3pl, patterns(5, 2, 3), apar = alph, bpar = beta, cpar = gamm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.