as.q_matrix
acts as an aliases.
as_q_matrix(x, ...) # S3 method for data.frame as_q_matrix(x, ...) # S3 method for matrix as_q_matrix(x, ...) # S3 method for default as_q_matrix(x, ...)
x | Either a |
---|---|
... | Not used |
A q_matrix
object.`
# Q matrix values x = matrix(c(1, 0, 0, 1), nrow = 2) # Construct class q_mat = as_q_matrix(x) # View the converted Q matrix q_mat#> A q matrix: 2 x 2 #> Strictly Identified:#>#> Generically Identified:#>#> Trait1 Trait2 #> Item1 1 0 #> Item2 0 1