as.data.frame.cat_output {irt} | R Documentation |
cat_output
object into a data.frame
.This function converts cat_output
objects to a
data.frame
object.
## S3 method for class 'cat_output'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
An |
row.names |
|
optional |
logical. If |
... |
additional arguments |
A data frame with the following columns:
True ability of the simulee
Ability estimate before administration of an item.
Standard error before administration of an item.
Administered testlet's ID.
Administered item's ID.
Response to the item
Ability estimate after the administration of an item.
Standard error after administration of an item.
Emre Gonulates
ip <- generate_ip(n = 40)
cd <- create_cat_design(ip = ip, next_item_rule = 'mfi',
termination_rule = 'max_item',
termination_par = list(max_item = 10))
cat_data <- cat_sim(true_ability = rnorm(1), cd = cd)
as.data.frame(cat_data)