Learn R Programming

edina (version 0.1.1)

extract_q_matrix: Extract Q Matrix

Description

Given a modeling object, extract the Q Matrix

Usage

extract_q_matrix(x, ...)

# S3 method for q_matrix extract_q_matrix(x, ...)

# S3 method for edina extract_q_matrix(x, binary = TRUE, ...)

# S3 method for default extract_q_matrix(x, ...)

Arguments

x

An edina or q_matrix object

...

Additional parameters

binary

Boolean to indicate whether the Q matrix is shown in dichotomous form or in an estimated form.

Value

A matrix that is either dichotomous or estimated depending on the value of the binary parameter.

See Also

q_matrix(), as_q_matrix(), edina(), auto_edina()

Examples

Run this code
# NOT RUN {
# Q matrix values
x = matrix(c(1, 0, 0, 1), nrow = 2)

# Show Q matrix structure
Q = q_matrix(x)

# Retrieve Q matrix
extract_q_matrix(Q)
# }

Run the code above in your browser using DataLab