Learn R Programming

psychotree (version 0.13-0)

RSModel: Model-Generating Function for Rating Scale Models

Description

RSModel is a wrapper function that creates a "StatModel" object with certain fitting parameters passed on to RSModel.fit for fitting rating scale models.

Usage

RSModel(reltol = 1e-10, deriv = c("sum", "diff"), hessian = TRUE,
  maxit = 100L)

Arguments

deriv
character. If "sum" (the default), the first derivatives of the elementary symmetric functions are calculated with the sum algorithm. Otherwise ("diff") the difference algorithm (faster but numerically unstable) is used.
hessian
logical. Should the Hessian of the final model be computed? If set to FALSE, the vcov method can only return NAs and consequently no standard errors or tests are available in the summary.
reltol, maxit, ...
further arguments passed to optim.

Value

  • RSModel returns an S4 object of class "StatModel" that fits rating scale models with the specified arguments.

Details

RSModel is the S4 interface for RSModel.fit so that it can be used in mob. The user does not have to call this directly but can simply use the rstree interface.

See Also

rstree, RSModel.fit