rlikert: Simulate Likert-Type Data

Description Usage Arguments Value Examples

View source: R/rlikert.R

Description

Simulate ordinal variables of arbitrary length.

Usage

1
2
3
4
5
6
7
8
9
rlikert(
  n = 1000,
  t1 = -0.84,
  t2 = -0.25,
  t3 = 0.25,
  t4 = 0.84,
  mean = 0,
  disc = 0
)

Arguments

n

The number of random outcomes to generate.

t1

The first threshold parameter. Defaults to -0.84.

t2

The second threshold parameter. Defaults to -0.25.

t3

The third threshold parameter. Defaults to 0.25.

t4

The fourth threshold parameter. Defaults to 0.84.

mean

The mean of the latent continuous variable that underpins the ordinal outcome. Defaults to 0.

disc

The discrimination of the latent continuous variable that underpins the ordinal outcome. Defaults to 0.

Value

A vector of likert type data.

Examples

1
rlikert(n = 10)

jackobailey/jbmisc documentation built on Dec. 14, 2021, 12:11 a.m.