beta_likert: beta_likert

Description Usage Arguments Examples

View source: R/aqm.R

Description

A function to simulate responses on the Likert scale with probabilities which follow a beta distribution

Usage

1
beta_likert(n = 100, mean = 0.5, sd = 0.5)

Arguments

n
mean
sd

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Symetrical around neutral
table(beta_likert(mean=0.5,sd=0.4))

## Marmite response, but on the side of agree overall

table(beta_likert(mean=0.7,sd=0.8))

## Strongly disagree

table(beta_likert(mean=0.1,sd=0.2))

dgolicher/aqm documentation built on March 11, 2021, 7:45 a.m.