| predict | R Documentation |
Predict response probabilities from fitted ForceChoice model
objects. Given a fitted model and optionally new person parameter
(latent trait) values, returns the model-implied response probabilities.
When newdata is not provided, predictions are made at the
estimated latent trait values for each person.
## S3 method for class 'MIRT'
predict(object, newdata = NULL, type = c("probability", "response"), ...)
## S3 method for class 'MGPCM'
predict(object, newdata = NULL, type = c("probability", "response"), ...)
## S3 method for class 'MGGUM'
predict(object, newdata = NULL, type = c("probability", "response"), ...)
## S3 method for class 'FCMIRT'
predict(object, newdata = NULL, type = c("probability", "response"), ...)
## S3 method for class 'FCDCM'
predict(object, newdata = NULL, type = c("probability", "response"), ...)
## S3 method for class 'FCGDINA'
predict(object, newdata = NULL, type = c("probability", "response"), ...)
## S3 method for class 'FCGGUM'
predict(object, newdata = NULL, type = c("probability", "response"), ...)
## S3 method for class 'TIRT'
predict(object, newdata = NULL, type = c("probability", "response"), ...)
object |
A fitted model object of class |
newdata |
An optional |
type |
Character; |
... |
Additional arguments (currently ignored). |
type = "probability"For binary models (MIRT, TIRT):
an M \times I matrix of endorsement probabilities. For
polytomous models (MGPCM, MGGUM): an M \times \sum K_i
matrix of stacked category probabilities. For forced-choice
models (FCMIRT, FCGGUM): an M \times \sum K_b matrix of
block-pattern probabilities. For FCDCM: an M \times B
matrix of marginal block-choice probabilities.
type = "response"For binary models: an
M \times I matrix of simulated 0/1 responses. For
polytomous models: an M \times I matrix of category
indices. For forced-choice models: an M \times B matrix
of chosen pattern indices.
predict(MIRT): Predict response probabilities or simulated
responses from MIRT objects.
predict(MGPCM): Predict response probabilities from MGPCM objects.
predict(MGGUM): Predict response probabilities from MGGUM objects.
predict(FCMIRT): Predict response probabilities from FCMIRT objects.
predict(FCDCM): Predict response probabilities from FCDCM objects.
predict(FCGDINA): Predict response probabilities from FCGDINA objects.
For newdata, provide either binary alpha profiles or class
probability rows.
predict(FCGGUM): Predict response probabilities from FCGGUM objects.
predict(TIRT): Predict response probabilities from TIRT objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.