classifyItems: Classify Items

View source: R/itemanalysis.R

classifyItemsR Documentation

Classify Items

Description

Automatically classify the items in a data frame.

Usage

classifyItems(
  fm,
  Df,
  min.loading = 0.4,
  max.loading = 0.3,
  max.complexity = 2,
  itemlength = 0,
  digits = 2,
  Df.name = deparse(substitute(Df)),
  return.res = FALSE
)

Arguments

fm

a factor model fitted by psych::fa or principal components computed with psych::principal

Df

a data frame containing the items

min.loading

minimum loading of an item to be considered a marker of a factor

max.loading

maximum loading of an item on a secondary factor (i.e., the factor on which the items has its second highest loading) to be considered a marker for the primary factor (i.e., the factor on which the items has its highest loading)

max.complexity

maximum complexity of an item to be considered a marker item. This is only used for factor models (not for principal components)

itemlength

trim item text to given number characters (0 = automatic trimming)

digits

number of digits used in the output

Df.name

name of data frame

return.res

(logical) if TRUE, return output as a list of data frames instead of simply printing the output. This is used by Iana to render the output via renderTable().

Author(s)

Michael Hock michael.hock@uni-bamberg.de


mihock/iana documentation built on Jan. 14, 2024, 8:58 p.m.