class_probabilities: Extract latent class probabilities from a rater fit object

View source: R/point_estimate.R

class_probabilitiesR 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)




rater documentation built on Sept. 12, 2023, 1:13 a.m.