Description Usage Arguments Value Author(s) See Also Examples
Creates the ideal response matrix for each trait
1 | sim_eta_matrix(K, J, Q)
|
K |
Number of Attribute Levels |
J |
Number of Assessment Items |
Q |
Q Matrix with dimensions K x J. |
A mat
with dimensions J x 2^K.
Steven Andrew Culpepper and James Joseph Balamuta
simcdm::sim_q_matrix()
, simcdm::attribute_bijection()
, and
simcdm::attribute_inv_bijection()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ## Simulation Settings ----
# Fixed Number of Assessment Items for Q
J = 18
# Fixed Number of Attributes for Q
K = 3
## Pre-specified configuration ----
# Specify Q
qbj = c(4, 2, 1, 4, 2, 1, 4, 2, 1, 6, 5, 3, 6, 5, 3, 7, 7, 7)
# Fill Q Matrix
Q = matrix(, J, K)
for (j in seq_len(J)) {
Q[j,] = attribute_inv_bijection(K, qbj[j])
}
# Create an eta matrix
ETA = sim_eta_matrix(K, J, Q)
## Random generation of Q matrix with ETA matrix ----
# Construct a random q matrix
Q_sim = sim_q_matrix(J, K)
# Generate the eta matrix
ETA_gen = sim_eta_matrix(K, J, Q_sim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.