View source: R/point_estimate.R
class_probabilities | R Documentation |
Extract latent class probabilities from a rater fit object
class_probabilities(fit, ...)
## S3 method for class 'mcmc_fit'
class_probabilities(fit, ...)
## S3 method for class 'optim_fit'
class_probabilities(fit, ...)
fit |
A rater fit object. |
... |
Extra arguments. |
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.
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).
fit <- rater(anesthesia, "dawid_skene")
class_probabilities(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.