rank_items {LikertEZ}R Documentation

Rank items by RII or Mean

Description

This function ranks items in the data based on either the Relative Importance Index (RII) or the mean of responses.

Usage

rank_items(data, method = "rii", max_scale = 5, n = 5, top = TRUE)

Arguments

data

A data.frame of ordinal items.

method

Method to rank items. Either "rii" (for Relative Importance Index) or "mean" (for mean response).

max_scale

Max Likert scale value (default: 5).

n

Number of top items to return (default: 5).

top

Logical. If TRUE, returns the top items, otherwise returns the bottom items (default: TRUE).

Value

A vector of ranked items.


[Package LikertEZ version 0.1.0 Index]