rsmodel
is a basic fitting function for rating scale models.
rsmodel(y, weights = NULL, start = NULL, reltol = 1e-10, deriv = c("sum", "diff"), hessian = TRUE, maxit = 100L, full = TRUE, ...)
as.matrix
). Typically either already a
matrix
or a data.frame
with
items in the columns and observations in the rows.FALSE
, the vcov
method can only return NA
s
and consequently no standard errors or tests are available in the
summary
.optim
.FALSE
,
no variance-covariance matrix and no matrix of estimating functions are computed.rsmodel
returns an S3 object of class "rsmodel"
,
i.e., a list with the following components:
"raschmodel"
or "btmodel"
, where
data
contains the original data,ncol(y)
, which
indicates which items have variance (TRUE
), i.e., are identified and have been
used for the estimation or not (FALSE
),ncol(y)
, which
contains the number of categories minus one per item,y
,optim
,optim
,optim
.rsmodel
provides a basic fitting function for rating scales models,
intended as a building block for fitting rating scale trees. It
estimates the rating scale model in the parametrization suggested by
Andrich (1978), i.e., item-specific parameters $\xi_{j}$ who mark
the location of the first absolute threshold of an item on the theta axis and
cumulative relative threshold parameters $\kappa_{k}$ are
estimated by the function rsmodel
. rsmodel
returns an object of class "rsmodel"
(and
class "pcmodel"
) for which several basic methods are available,
including print
, plot
, summary
, coef
,
vcov
, logLik
, discrpar
, estfun
,
itempar
, threshpar
, and personpar
.
pcmodel
, raschmodel
, btmodel
o <- options(digits = 4)
## Verbal aggression data
data("VerbalAggression", package = "psychotools")
## Rating scale model for the other-to-blame situations
rsm <- rsmodel(VerbalAggression$resp[, 1:12])
summary(rsm)
## visualizations
plot(rsm, type = "profile")
plot(rsm, type = "regions")
plot(rsm, type = "curves")
plot(rsm, type = "information")
plot(rsm, type = "piplot")
options(digits = o$digits)
Run the code above in your browser using DataLab