$,Testlet-method {irt}R Documentation

Access slots of a Testlet-class object

Description

Access slots of a Testlet-class object

Usage

## S4 method for signature 'Testlet'
x$name

Arguments

x

A Testlet-class object from which to extract element(s) or in which to replace element(s).

name

Name of the parameter. Available values:

'testlet_id' or 'id'

Get the testlet_id of the testlet

'content'

Get the content of the testlet.

'model'

Get the model of the testlet.

'item_models'

Get the models of the items within the testlet.

'item_id'

Get the item_ids of the items within the testlet.

'misc'

Get the misc field of the testlet.

'parameters'

Get the parameters of the testlet.

'se_parameters'

Get the se_parameters of the testlets.

'item_list'

Get the list of Item-class objects of the testlet. Returns a list object.

'max_score'

Returns the maximum score obtainable by all of the items within the testlet.

Value

This operation will return the desired slot.

Examples

t1 <- testlet(generate_ip(n = 3), testlet_id = "my-testlet",
              content = "Reading",
              misc = list(paragraph_text = "This is a paragraph."))
t1$model
t1$testlet_id
t1$item_list
t1$item_models
t1$item_id
t1$content
t1$item_models
t1$misc
t1$paragraph_text


[Package irt version 0.2.9 Index]