rank_items: Rank items by RII or Mean

View source: R/LikertEZ.R

rank_itemsR 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.


LikertEZ documentation built on April 3, 2025, 11:27 p.m.