Simulate Likert scales and ordinal data by discretizing normally distributed data based on desired distribution and number of levels.
1 | cut_rhemtulla(dt, dist = "symmetric", levs = 5, labels = FALSE)
|
dt |
A data frame. |
dist |
A character string. Allowed values are "symmetric" "moderate_asym" and "severe_asym" to select the desired distribution. Default = "symmetric" |
levs |
A scalar integer to set the number of item levels. Allowed values are 2, 3, 5 or 7. |
labels |
A scalar boolean. Passed to the cut function.
Determines whether labels or underlying factor keys are returned.
Default = |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.