| simulate_hier_dawid_skene_model | R Documentation | 
Simulate data from the hierarchical Dawid-Skene model
simulate_hier_dawid_skene_model(pi, mu, sigma, sim_data, seed = NULL)
| pi | The pi parameter of the hierarchical Dawid-Skene model. | 
| mu | The mu parameter of the hierarchical Dawid-Skene model. | 
| sigma | The sigma parameter of the hierarchical Dawid-Skene model. | 
| sim_data | Data to guide the simulation. The data must be in the long
data format used in  
 | 
| seed | An optional random seed to use. | 
The number of raters implied by the entries in the rater column must match the number of raters implied by the passed theta parameter.
The passed sim_data augmented with columns:
"z" containing the latent class of each item,
"rating" containing the simulated rating.
J <- 5
K <- 4
pi <- rep(1 / K, K)
mu <- matrix(0, nrow = K, ncol = K)
diag(mu) <- 5
sigma <- matrix(sqrt(2) / sqrt(pi), nrow = K, ncol = K)
sim_data <- data.frame(item = rep(1:2, each = 5), rater = rep(1:5, 2))
sim_result <- simulate_hier_dawid_skene_model(pi, mu, sigma, sim_data)
sim_result$sim
sim_result$theta
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.