Learn R Programming

classicaltest (version 0.7.5)

itemmean: Item mean scores

Description

Calculates the item mean scores.

Usage

itemmean(x, wt = NULL)

Value

a data frame.

Arguments

x

a data frame or matrix of scored data.

wt

a vector with total weights. Default is NULL.

Examples

Run this code
# No weights
ex <- correct(x = dichodata, key = dichokey, navalue = NA)
itemmean(ex)


# With weights
set.seed(1919)
wt <- sample(x = 1:4, size = nrow(dichodata), replace = TRUE)
itemmean(ex,wt = wt)

Run the code above in your browser using DataLab