Learn R Programming

effectsize (version 0.4.1)

interpret: Generic function for interpretation

Description

Interpret a value based on a set of rules. See rules().

Usage

interpret(x, ...)

# S3 method for numeric interpret(x, rules, name = attr(rules, "rule_name"), ...)

Arguments

x

Vector of value break points (edges defining categories).

...

Currently not used.

rules

Set of rules().

name

Name of the set of rules (stored as a 'rule_name' attribute).

See Also

rules

Examples

Run this code
# NOT RUN {
rules_grid <- rules(c(0.01, 0.05), c("very significant", "significant", "not significant"))
interpret(0.001, rules_grid)
interpret(0.021, rules_grid)
interpret(0.08, rules_grid)
interpret(c(0.01, 0.005, 0.08), rules_grid)

interpret(c(0.35, 0.15), c("small" = 0.2, "large" = 0.4), name = "Cohen's Rules")
interpret(c(0.35, 0.15), rules(c(0.2, 0.4), c("small", "medium", "large")))
# }

Run the code above in your browser using DataLab