as.data.frame.cat_output {irt}R Documentation

Convert a cat_output object into a data.frame.

Description

This function converts cat_output objects to a data.frame object.

Usage

## S3 method for class 'cat_output'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

An cat_output object

row.names

NULL or a character vector giving the row names for the data frame. Missing values are not allowed.

optional

logical. If TRUE, setting row names and converting column names

...

additional arguments

Value

A data frame with the following columns:

true_ability

True ability of the simulee

est_before

Ability estimate before administration of an item.

se_before

Standard error before administration of an item.

testlet_id

Administered testlet's ID.

item_id

Administered item's ID.

resp

Response to the item

est_after

Ability estimate after the administration of an item.

se_after

Standard error after administration of an item.

Author(s)

Emre Gonulates

Examples

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)


[Package irt version 0.2.9 Index]