Create a factor with labels using SESOI thresholds

get_magnitude(
  x,
  SESOI_lower,
  SESOI_upper,
  labels = c("Lower", "Equivalent", "Higher")
)

Arguments

x

Numeric vector

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

labels

Character vector with three elements. Default is "Lower", "Equivalent", "Higher"

Value

Ordered factor

Examples

get_magnitude(rnorm(20), -1, 1)
#> [1] Equivalent Equivalent Equivalent Equivalent Equivalent Equivalent #> [7] Equivalent Higher Equivalent Equivalent Equivalent Equivalent #> [13] Equivalent Lower Equivalent Equivalent Equivalent Equivalent #> [19] Equivalent Lower #> Levels: Lower < Equivalent < Higher