View source: R/discursive_range.R
discursive_range | R Documentation |
This function takes a data frame (data
) containing a set of open-ended responses (openends
) to compute the Shannon entropy in individual response lengths across items. The function returns a numeric vector of topic counts re-scaled to range from 0 to 1. See Kraft (2023) for details.
discursive_range(data, openends)
data |
A data frame. |
openends |
A character vector containing variable names of open-ended responses in |
A numeric vector with the same length as the number of rows in data
.
discursive_range(data = cces,
openends = c(paste0("oe0", 1:9), "oe10"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.