View source: R/posterior_predict.R
| posterior_predict.rater_fit | R Documentation | 
Draw from the posterior predictive distribution
## S3 method for class 'rater_fit'
posterior_predict(object, new_data, seed = NULL, ...)
| object | A  | 
| new_data | New data for the model to be fit to. The must be in the form
used in  | 
| seed | An optional random seed to use. | 
| ... | Other arguments. | 
The number of raters implied by the entries in the rater column must match the number of raters in the fitted model.
The passed new_data augmented with a column 'z' containing the
latent class of each item and 'rating' containing the simulated rating.
fit <- rater(anesthesia, "dawid_skene", verbose = FALSE)
new_data <- data.frame(item = rep(1:2, each = 5), rater = rep(1:5, 2))
predictions <- posterior_predict(fit, new_data)
predictions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.