Molenaar (1991) and Emons (2008) statistics, based on the number of Guttman errors, for polytomous items.

1 2 3 4 5 6 7 |

`matrix` |
A data matrix of polytomous item scores: Persons as rows, items as columns, item scores are integers between 0 and (Ncat-1), missing values allowed. |

`Ncat` |
Number of answer options for each item. |

`NA.method` |
Method to deal with missing values. The default is pairwise elimination ( |

`Save.MatImp` |
Logical. Save (imputted) data matrix to file? Default is FALSE. |

`IP` |
Matrix with previously estimated item parameters: One row per item. The first (Ncat-1) columns contain the between-categories threshold parameters (for the GRM) or the item step difficulties (for the PCM and the GPCM). The last, Ncat-th, column has the slopes. In case no item parameters are available then |

`IRT.PModel` |
Specify the IRT model to use in order to estimate the item parameters (only if |

`Ability` |
Vector with previoulsy estimated latent ability parameters, one per respondent, following the order of the row index of In case no ability parameters are available then |

`Ability.PModel` |
Specify the method to use in order to estimate the latent ability parameters (only if |

Molenaar (1991) generalized the `G`

person-fit statistic to polytomous items, `Gpoly`

. The idea is based on the so-called item-step difficulty, which is the probability of moving from answer category *(c)* to answer category *(c+1)* (*c=0,...,Ncat-2*).

Just like `G`

, `Gpoly`

depends on the test length. Emons (2008) developed `Gnormed.poly`

, which is a normalized version of `Gpoly`

.

Aberrant response behavior is (potentially) indicated by large values of Gpoly/Gnormed.poly (i.e., in the right tail of the sampling distribution).

The number of answer options, `Ncat`

, is the same for all items.

`Gpoly`

reduces to `G`

, and `Gnormed.poly`

reduces to `Gnormed`

, when `Ncat=2`

.

Missing values in `matrix`

are dealt with by means of pairwise elimination by default. Alternatively, single imputation is also available. Three single imputation methods exist: Hotdeck imputation (`NA.method = "Hotdeck"`

), nonparametric model imputation (`NA.method = "NPModel"`

), and parametric model imputation (`NA.method = "PModel"`

); see Zhang and Walker (2008).

Hotdeck imputation replaces missing responses of an examinee ('recipient') by item scores from the examinee which is closest to the recipient ('donor'), based on the recipient's nonmissing item scores. The similarity between nonmissing item scores of recipients and donors is based on the sum of absolute differences between the corresponding item scores. The donor's response pattern is deemed to be the most similar to the recipient's response pattern in the group, so item scores of the former are used to replace the corresponding missing values of the latter. When multiple donors are equidistant to a recipient, one donor is randomly drawn from the set of all donors.

The nonparametric model imputation method is similar to the hotdeck imputation, but item scores are generated from multinomial distributions with probabilities defined by donors with similar total score than the recipient (based on all items except the NAs).

The parametric model imputation method is similar to the hotdeck imputation, but item scores are generated from multinomial distributions with probabilities estimated by means of parametric IRT models (

`IRT.PModel = "PCM"`

,`"GPCM"`

, or`"GRM"`

). Item parameters (`IP`

) and ability parameters (`Ability`

) may be provided for this purpose (otherwise the algorithm finds estimates for these parameters).

An object of class "PerFit", which is a list with 12 elements:

`PFscores` |
A list of length |

`PFstatistic` |
The person-fit statistic used. |

`PerfVects` |
Not applicable. |

`ID.all0s` |
Not applicable. |

`ID.all1s` |
Not applicable. |

`matrix` |
The data matrix after imputation of missing values was performed (if applicable). |

`Ncat` |
The number of response categories. |

`IRT.PModel` |
The parametric IRT model used. |

`IP` |
The |

`Ability.PModel` |
The method used to estimate abilities used. |

`Ability` |
The vector of |

`NAs.method` |
The imputation method used (if applicable). |

Jorge N. Tendeiro j.n.tendeiro@rug.nl

Emons, W. M. (2008) Nonparametric person-fit analysis of polytomous item scores. *Applied Psychological Measurement*, **32(3)**, 224–247.

Karabatsos, G. (2003) Comparing the Aberrant Response Detection Performance of Thirty-Six Person-Fit Statistics. *Applied Measurement In Education*, **16(4)**, 277–298.

Meijer, R. R. (1994) The number of Guttman errors as a simple and powerful person-fit statistic. *Applied Psychological Measurement*, **18(4)**, 311–314.

Molenaar, I. W. (1991) A weighted Loevinger H-coefficient extending Mokken scaling to multicategory items. *Kwantitatieve Methoden*, **12(37)**, 97–117.

Zhang, B., and Walker, C. M. (2008) Impact of missing data on person-model fit and person trait estimation. *Applied Psychological Measurement*, **32(6)**, 466–479.

1 2 3 4 5 6 7 8 | ```
# Load the physical functioning data (polytomous item scores):
data(PhysFuncData)
# Compute the Gpoly scores:
Gpoly.out <- Gpoly(PhysFuncData, Ncat=3)
# Compute the Gnormed.poly scores:
Gnormedpoly.out <- Gnormed.poly(PhysFuncData, Ncat=3)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.