Learn R Programming

catSurv (version 1.5.0)

setters: Methods for Setting Value(s) to Cat Object Slots

Description

Setter methods to control changes to the slots of a Cat object.

Usage

# S4 method for Cat
setGuessing(catObj) <- value

# S4 method for Cat setDiscrimination(catObj) <- value

# S4 method for Cat setDifficulty(catObj) <- value

# S4 method for Cat setAnswers(catObj) <- value

# S4 method for Cat setIds(catObj) <- value

# S4 method for Cat setModel(catObj) <- value

# S4 method for Cat setPriorName(catObj) <- value

# S4 method for Cat setPriorParams(catObj) <- value

# S4 method for Cat setLowerBound(catObj) <- value

# S4 method for Cat setUpperBound(catObj) <- value

# S4 method for Cat setEstimation(catObj) <- value

# S4 method for Cat setEstimationDefault(catObj) <- value

# S4 method for Cat setSelection(catObj) <- value

# S4 method for Cat setZ(catObj) <- value

# S4 method for Cat setLengthThreshold(catObj) <- value

# S4 method for Cat setSeThreshold(catObj) <- value

# S4 method for Cat setGainThreshold(catObj) <- value

# S4 method for Cat setInfoThreshold(catObj) <- value

# S4 method for Cat setLengthOverride(catObj) <- value

# S4 method for Cat setGainOverride(catObj) <- value

Arguments

catObj

An object of class Cat

value

The new value(s)

Author

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

See Also

Cat-class, getters

Examples

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

## Setting estimation slot
getEstimation(ltm_cat)
setEstimation(ltm_cat) <- "MAP"
getEstimation(ltm_cat)

## Setting distrimination slot
getDiscrimination(ltm_cat)
setDiscrimination(ltm_cat) <- rep(1, 40)
getDiscrimination(ltm_cat)

Run the code above in your browser using DataLab