summarize {LikertEZ}R Documentation

Summarize a Likert item

Description

This function calculates summary statistics for a Likert item, including mean, median, mode, and performs a chi-square test.

Usage

summarize(responses, max_scale = 5, exact = TRUE, B = 10000, tidy = FALSE)

Arguments

responses

Numeric vector of responses.

max_scale

The maximum scale value.

exact

If TRUE, use exact Monte Carlo method.

B

Number of simulations for Monte Carlo.

tidy

If TRUE, returns a tidy data frame.

Value

A list or data.frame with summary statistics.

Examples

responses <- c(1, 2, 3, 4, 5, 4, 3, 2, NA)
summarize(responses)

[Package LikertEZ version 0.1.0 Index]