lexact {LikertMakeR}R Documentation

Generate rating-scale data with only Mean and Standard Deviation

Description

lexact() generates rating-scale values with predefined first and second moments.

Usage

lexact(n, mean, sd, lowerbound, upperbound, items = 1, seed)

Arguments

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

Details

If feasible, moments are exact to two decimal places.

Value

a vector with user-specified parameters

Examples


x <- lexact(
  n = 16,
  mean = 3.25,
  sd = 1.00,
  lowerbound = 1,
  upperbound = 5,
  items = 4
)


[Package LikertMakeR version 0.1.5 Index]