Learn R Programming

irt (version 0.2.9)

mean,Testlet-method: Calculate the expected value of an Testlet

Description

mean Returns the expected values of each item in an Testlet-class object for a given ability or abilities, i.e. \(\theta\).

Usage

# S4 method for Testlet
mean(x, ...)

Value

Item expected values at given theta values will be returned.

Arguments

x

A Testlet-class object containing the item parameters.

...

Additional parameters. Specifically theta argument is required. theta should be a numeric vector of ability parameters.

Author

Emre Gonulates

Examples

Run this code
t1 <- generate_testlet()
mean(t1, theta = -1.1)
mean(t1, -1.1)

Run the code above in your browser using DataLab