Learn R Programming

catSurv (version 1.5.0)

getters: Methods for Accessing Cat Object Slots

Description

Getter methods to access slots of a Cat object.

Usage

# S4 method for Cat
getModel(catObj)

# S4 method for Cat getGuessing(catObj)

# S4 method for Cat getDiscrimination(catObj)

# S4 method for Cat getDifficulty(catObj)

# S4 method for Cat getAnswers(catObj)

# S4 method for Cat getIds(catObj)

# S4 method for Cat getPriorName(catObj)

# S4 method for Cat getPriorParams(catObj)

# S4 method for Cat getLowerBound(catObj)

# S4 method for Cat getUpperBound(catObj)

# S4 method for Cat getEstimation(catObj)

# S4 method for Cat getEstimationDefault(catObj)

# S4 method for Cat getSelection(catObj)

# S4 method for Cat getZ(catObj)

# S4 method for Cat getLengthThreshold(catObj)

# S4 method for Cat getSeThreshold(catObj)

# S4 method for Cat getInfoThreshold(catObj)

# S4 method for Cat getGainThreshold(catObj)

# S4 method for Cat getLengthOverride(catObj)

# S4 method for Cat getGainOverride(catObj)

Value

These functions return the respective slot from Cat object.

Arguments

catObj

An object of class Cat

Author

Haley Acevedo, Ryden Butler, Josh W. Cutler, Matt Malis, Jacob M. Montgomery, Tom Wilkinson, Erin Rossiter, Min Hee Seo, Alex Weil

References

Montgomery, Jacob M., and Erin L. Rossiter. "So many questions, so little time: Integrating adaptive inventories into public opinion research." Journal of Survey Statistics and Methodology (2019).

See Also

Cat-class, setters

Examples

Run this code
## Loading ltm Cat object
data(ltm_cat)

## Getting estimation slot before and after change
getEstimation(ltm_cat)
setEstimation(ltm_cat) <- "MAP"
getEstimation(ltm_cat)

## Getting discrimination slot before and after change
getDiscrimination(ltm_cat)
setDiscrimination(ltm_cat) <- rep(1, 40)
getDiscrimination(ltm_cat)


Run the code above in your browser using DataLab