matchItems: Match short and long item names in EFA

Description Usage Arguments Details Value See Also

Description

Get long items from an item-codebook and the results of an exploratory factor analysis (EFA) combined in one data frame.

Usage

1
2
matchItems(efa.result, codebook, shortitem = "Namen", longitem = "Items",
  digits = 3, cut = NULL)

Arguments

efa.result

A fitted EFA from efa.

codebook

The codebook, in which both the shortitem and longitem are to be found.

shortitem

The variable in the codebook containing the short names of the item, which were also used in the data frame for the efa.

longitem

The variable in the codebook containing the full item (which was for example given to the participant in the study).

digits

The number of digits that should be displayed in the resulting data frame.

cut

The smalles loadings that should be displayed. If NULL, all loadings are returned.

Details

A common problem is the match of short item names, which are used in a data frame, to their rather long counterparts, i. e. the full item. This function allows matching full items (such as "I like to run an efa") with their short counterpart which was used in the data frame (such as "efa_like"). The matching is based on an item codebook.

Value

A data frame with the shortitem as rownames, in the first column the long items (from longitem), and in the next columns the factors/components that were extracted during the EFA, witht heir factor loadings.

See Also

efa to run an EFA, write.xlsx to write the resulting data frame into a user friendly .xlsx format.


kthorstmann/horst documentation built on May 20, 2019, 7:04 p.m.