Learn R Programming

mirt (version 1.44.0)

Attitude: Description of Attitude data

Description

Table of counts extracted from Andrich (1988). Data the response patterns observed for an eight item survey.

Arguments

Author

Phil Chalmers rphilip.chalmers@gmail.com

Details

The items in this survey were:

  1. Capital punishment is one of the most hideous practices of our time.

  2. The state cannot teach the sacredness of human life by destroying it.

  3. Capital punishment is not an effective deterrent to crime.

  4. I don't believe in capital punishment but I am not sure it isn't necessary.

  5. I think capital punishment is necessary but I wish it were not.

  6. Until we find a more civilized way to prevent crime we must have capital punishment.

  7. Capital punishment is justified because it does act as a deterrent to crime.

  8. Capital punishment gives the criminal what he deserves.

References

Andrich, D. (1988). The Application of an Unfolding Model of the PIRT Type to the Measurement of Attitude. Applied Psychological Measurement, 12, 33-51.

Examples

Run this code

head(Attitude)
df <- expand.table(Attitude)
itemstats(df)

if (FALSE) {

# estimate SSLM with estimated " latitude of acceptance" (rho)
mod.rho <- mirt(df, 1, itemtype = 'sslm')
coef(mod.rho)
coef(mod.rho, simplify=TRUE)  # slope-intercept-log_rho
coef(mod.rho, simplify=TRUE, IRTpars=TRUE)  # discrimination-difficulty-rho
plot(mod.rho)
plot(mod.rho, type = 'trace')

# without estimating rho, and fixing to rho^2 = 1  (hence,
#   log_rho = -exp(1) = -2.718282 in order to obtain (exp(exp(log_rho))) = 1)
syntax <- "Theta = 1-8
           FIXED = (1-8, log_rho1)
           START = (1-8, log_rho1, -2.71828)"
mod <- mirt(df, syntax, itemtype = 'sslm')  # model found in Andrich (1988)
coef(mod)
coef(mod, simplify=TRUE)  # slope-intercept-log_rho
coef(mod, simplify=TRUE, IRTpars=TRUE)  # discrimination-difficulty-rho
plot(mod)
plot(mod, type = 'trace') # notice that all curves have a fixed height of .5

# goodness of fit (less constrained model fits better)
anova(mod, mod.rho) # original model fits much worse
M2(mod)
M2(mod.rho)
itemfit(mod, p.adjust='fdr')
itemfit(mod.rho, p.adjust='fdr')

}


Run the code above in your browser using DataLab