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 |
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 |
nlambda |
: The number of regularization parameters to be used in |
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 |
: The type of bootstrap confidence intervals to be calculated if the argumnet |
k |
: The dimension of the basis in the thin plate regression spline that is used when testing for IRF unimodality. The default value of |
which |
: Which diagnostic should be returned by the function. Available options are |
plot |
: Logical. Should plots be returned for the diagnostics that can be plotted? Default value is |
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")