extract_q: Extract Q Matrix

Description Usage Arguments Value See Also Examples

Description

Given a modeling object, extract the Q Matrix

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
extract_q_matrix(x, ...)

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

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

## Default S3 method:
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

1
2
3
4
5
6
7
8
# 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)

edina documentation built on March 26, 2020, 9:30 p.m.