cash-Testlet-method: Access slots of a 'Testlet-class' object

Description Usage Arguments Value Examples

Description

Access slots of a Testlet-class object

Usage

1
2
## 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.

'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

1
2
3
4
5
6
7
8
t1 <- testlet(generate_ip(n = 3), testlet_id = "my-testlet", content = "Algebra")
t1$model
t1$testlet_id
t1$item_list
t1$item_models
t1$item_id
t1$content
t1$item_models

irt documentation built on Nov. 9, 2021, 9:07 a.m.