lexact {LikertMakeR} | R Documentation |
lexact()
generates rating-scale values with
predefined first and second moments.
lexact(n, mean, sd, lowerbound, upperbound, items = 1, seed)
n |
(positive, int) the number of observations to simulate |
mean |
(real) target mean |
sd |
(real) target standard deviation |
lowerbound |
(positive, int) a lower bound for the data to be generated |
upperbound |
(positive, int) an upper bound for the data to be generated |
items |
(positive, int) number of items in the Likert scale. Default = 1 |
seed |
(real) optional seed for reproducibility |
If feasible, moments are exact to two decimal places.
a vector with user-specified parameters
x <- lexact(
n = 16,
mean = 3.25,
sd = 1.00,
lowerbound = 1,
upperbound = 5,
items = 4
)