# Dichotomous data (no skew)
dichotomous <- categorize(
data = rnorm(1000),
categories = 2
)
# Dichotomous data (with positive skew)
dichotomous_skew <- categorize(
data = rnorm(1000),
categories = 2,
skew_value = 1.25
)
# 5-point Likert scale (no skew)
five_likert <- categorize(
data = rnorm(1000),
categories = 5
)
# 5-point Likert scale (negative skew)
five_likert <- categorize(
data = rnorm(1000),
categories = 5,
skew_value = -0.45
)
Run the code above in your browser using DataLab