R: Generate a Random Identifiable Q Matrix

sim_q_matrix {simcdm} | R Documentation

## Generate a Random Identifiable Q Matrix

### Description

Simulates a Q matrix containing three identity matrices after a row permutation that is identifiable.

### Usage

    sim_q_matrix(J, K)

### Arguments

`J` | Number of Items
`K` | Number of Attributes

### Value

A dichotomous `matrix` for Q.

### Author(s)

Steven Andrew Culpepper and James Joseph Balamuta

### See Also

`simcdm::attribute_bijection()` and `simcdm::attribute_inv_bijection()`

### Examples

    ## Simulate identifiable Q matrices ----

    # 7 items and 2 attributes
    q_matrix_j7_k2 = sim_q_matrix(7, 2)

    # 10 items and 3 attributes
    q_matrix_j10_k3 = sim_q_matrix(10, 3)

[Package simcdm version 0.1.1 Index]