diagnostics {mudfold}R Documentation

MUDFOLD scale diagnostics

Description

This function returns diagnostics for a fitted MUDFOLD scale. Specifically, it returns the iso statistic (see ISO) the max statistic (see MAX), the matrix with stars at the maximum of each row, as well as a test for conditional independence.

Usage

diagnostics(x, boot, nlambda, lambda.crit, type, k, which, plot)

Arguments

x

: A fitted object of class "mdf" obtained from the mudfold function.

boot

: logical argument that controls if bootstrap confidence intervals and summary for the H coefficients and the ISO and MAX statistics will be returned. If boot=FALSE (default) no information for bootstrap is returned. When boot=TRUE, confidence intervals, standard errors, biases, calculated from the bootstrap iterations for each diagnostic are given with the output.

nlambda

: The number of regularization parameters to be used in cv.glmnet() function when testing local independence.

lambda.crit

: String that specifies the criterion to be used by cross-validation for choosing the optimal regularization parameter. Available options are "class" (default), "deviance", "auc", "mse", "mae". See the argument 'type.measure' in the cv.glmnet() function for more details.

type

: The type of bootstrap confidence intervals to be calculated if the argumnet boot=TRUE. Available options are "norm", "basic", "perc" (deafult), and "bca". See the argument type of the boot.CI() for details.

k

: The dimension of the basis in the thin plate regression spline that is used when testing for IRF unimodality. The default value of k is four.

which

: Which diagnostic should be returned by the function. Available options are "H", "LI", "UM", "ISO", "MAX", "STAR", "all" (default).

plot

: Logical. Should plots be returned for the diagnostics that can be plotted? Default value is plot=TRUE.

Value

a list of length six where each component is a diagnostic when which="all". A list equal to length(which) when which != "all".

Author(s)

Spyros E. Balafas (s.balafas@rug.nl)

References

W.J. Post. (1992). Nonparametric Unfolding Models: A Latent Structure Approach. M & T series. DSWO Press.

W.J. Post. and T.AB. Snijders. (1993). Nonparametric unfolding models for dichotomous data. Methodika.

Examples

## load the ANDRICH data
data("ANDRICH")

## Fit a MUDFOLD scale to the ANDRICH data
mudf_andrich <- mudfold(ANDRICH)
## Get the diagnostics
diagnostics(mudf_andrich, which = "UM")

[Package mudfold version 1.1.21 Index]