powered by
This function calculates summary statistics for a Likert item, including mean, median, mode, and performs a chi-square test.
summarize(responses, max_scale = 5, exact = TRUE, B = 10000, tidy = FALSE)
A list or data.frame with summary statistics.
Numeric vector of responses.
The maximum scale value.
If TRUE, use exact Monte Carlo method.
Number of simulations for Monte Carlo.
If TRUE, returns a tidy data frame.
responses <- c(1, 2, 3, 4, 5, 4, 3, 2, NA) summarize(responses)
Run the code above in your browser using DataLab