summarize | R Documentation |
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)
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. |
A list or data.frame with summary statistics.
responses <- c(1, 2, 3, 4, 5, 4, 3, 2, NA)
summarize(responses)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.