Description Usage Arguments Value Examples
rand_likert: Form a vector of likert responses with given probabilities
1 | rand_likert(n = 1000, p = c(1, 2, 3, 5, 10))
|
n |
Number of responses required |
p |
A vector of probabilities. Do not have to sum to 1 |
A vector of Likert responses
1 2 | q1<-rand_likert(n=100,p=c(1,1,1,1,1)) # Equal probabilites
table(q1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.