Learn R Programming

faux (version 1.2.3)

norm2likert: Convert normal to likert

Description

Convert normal to likert

Usage

norm2likert(x, prob, labels = names(prob), mu = mean(x), sd = stats::sd(x))

Value

a vector with the specified distribution

Arguments

x

the normally distributed vector

prob

a vector of probabilities or counts; if named, the output is a factor

labels

a vector of values, defaults to names(prob) or 1:length(prob), if numeric, the output is numeric

mu

the mean of x (calculated from x if not given)

sd

the SD of x (calculated from x if not given)