as.matrix,Response_set-method | R Documentation |
Response_set-class
object into a matrix
This function converts Response_set-class
objects
to a matrix
object.
## S4 method for signature 'Response_set'
as.matrix(x, ..., output = "score", ip = NULL)
x |
A |
... |
additional arguments |
output |
Contents of the matrix. The default value is
|
ip |
An |
A matrix of examinee item scores within each row and items in each column.
Emre Gonulates
ip <- generate_ip(n = 15)
resp_set <- generate_resp_set(ip = ip, theta = rnorm(30), prop_missing = .5)
# Matrix of item scores
as.matrix(resp_set)
# If the item pool object provided, the column names will have the same
# order as the item order in item pool
as.matrix(resp_set, ip = ip)
# Matrix of raw responses
as.matrix(resp_set, output = "raw_response")
# Matrix of item order
as.matrix(resp_set, output = "order")
# Matrix of item ids
as.matrix(resp_set, output = "item_id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.