letter_value: Compute Letter Value.
Description
letter_value returns the letter values until the level indicated by level.
Usage
letter_value(x, level = 2, na_rm = TRUE)
Value
a list object is returned with the variable name (variable_name), the sample (sample), and a data frame with the following columns:
- letter
a letter indicating the letter value
- depth
depth of the letter value
- lv_lower
lower letter value
- lv_upper
upper letter value
Arguments
- x
numeric vector
- level
integer value between 2 and 9 indicating the level to compute the letter values. Default value is 2.
- na_rm
a logical evaluating to TRUE or FALSE indicating whether NA values should be stripped before the computation proceeds. Default value is TRUE.
Details
This function computes the letter values as presented at Understanding Robust and Exploratory Data Analysis by Hoaglin, Mosteller and Tukey published in 1983.