ItemMean: Item Mean (IM) Imputation

Description Usage Arguments Value Examples

Description

This function imputes for all missing responses of an item by its mean (i.e., IM) on the available responses. Integrated scores for items are obtained by rounding their means to the closest possible response value.

Usage

1
ItemMean(test.data, Mvalue = "NA", max.score = 1, round.decimal = 0)

Arguments

test.data

Test data set (a data frame or a matrix) containing missing responses. Missing values are coded as NA or other values (e.g., 8, 9).

Mvalue

Missing response indicators in the data (e.g. "NA", "8", "9", etc.). Mvalue="NA" by default.

max.score

The max possible response value in test data. By default max.score=1 (i.e.,binary test data).

round.decimal

The number of digits or decimal places for the imputed value. The default value is 0.

Value

A data frame with all missing responses replaced by Integrated item means.

Examples

1
2
 
        ItemMean(test.data, Mvalue="NA",max.score=1,round.decimal=0)

TestDataImputation documentation built on Oct. 19, 2021, 1:07 a.m.