class_probabilities {rater} | R Documentation |
Extract latent class probabilities from a rater fit object
Description
Extract latent class probabilities from a rater fit object
Usage
class_probabilities(fit, ...)
## S3 method for class 'mcmc_fit'
class_probabilities(fit, ...)
## S3 method for class 'optim_fit'
class_probabilities(fit, ...)
Arguments
fit |
A rater fit object. |
... |
Extra arguments. |
Details
The latent class probabilities are obtained by marginalising out the latent class and then calculating, for each draw of pi and theta, the conditional probability of the latent class given the other parameters and the data. Averaging these conditional probabilities gives the (unconditional) latent class probabilities retuned by this function.
Value
A I * K matrix where each element is the probably of item i being of class k. (I is the number of items and K the number of classes).
Examples
fit <- rater(anesthesia, "dawid_skene")
class_probabilities(fit)
[Package rater version 1.3.1 Index]