likert: Analyze Likert type items.

Description Usage Arguments Details Value See Also Examples

Description

This function will provide various statistics about a set of likert items. The resulting object will have the following items:

Usage

1
2
  likert(items, summary, grouping = NULL, importance,
    nlevels = length(levels(items[, 1])))

Arguments

items

data frame containing the likert based items. The variables in the data frame should be factors.

summary

a pre-summarized data frame. The first column must be the items and the remaining columns are the levels (e.g. strongly disagree, disagree, etc).

grouping

(optional) should the results be summarized by the given grouping variable.

importance

a data frame of the same dimensions as items containing an importance rating for each item. The order of columns should match and the names from items will be used.

nlevels

number of possible levels. Only necessary if there are missing levels.

Details

Value

a likert class with the following elements: results, items, grouping, nlevels, and summary.

See Also

plot.likert

summary.likert

Examples

1
2
3
4
5
6
7
data(pisaitems)
items29 <- pisaitems[,substr(names(pisaitems), 1,5) == 'ST25Q']
names(items29) <- c("Magazines", "Comic books", "Fiction",
                   "Non-fiction books", "Newspapers")
l29 <- likert(items29)
summary(l29)
plot(l29)

bryanmayer/likert_custom documentation built on May 13, 2019, 8:10 a.m.