View source: R/distribution_convertors.R
| norm2likert | R Documentation |
Convert normal to likert
norm2likert(x, prob, labels = names(prob), mu = mean(x), sd = stats::sd(x))
x |
the normally distributed vector |
prob |
a vector of probabilities or counts; if named, the output is a factor |
labels |
a vector of values, defaults to names(prob) or 1:length(prob), if numeric, the output is numeric |
mu |
the mean of x (calculated from x if not given) |
sd |
the SD of x (calculated from x if not given) |
a vector with the specified distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.