Utilities for parsing point-null hypothesis references and level references in the same syntax accepted by hypothesis_BF.

hypothesis_parse_point_reference(hypothesis, allow_compound = TRUE)

hypothesis_parse_level_reference(text)

hypothesis_normalize_level_references(text)

Arguments

hypothesis

character vector with hypothesis statements or a validated BayesTools_hypothesis_ast.

allow_compound

whether compound left-hand side expressions such as "theta + 0 = 0" should be returned with direct = FALSE instead of rejected.

text

character vector with possible parameter[level] references. Formula interaction names such as factor:moderator[level] may be supplied without backticks.

Value

hypothesis_parse_point_reference() returns a data frame with columns hypothesis, side, symbol, parameter, level, value, operator, and direct. hypothesis_parse_level_reference() returns a data frame with columns input, symbol, parameter, level, and direct. hypothesis_normalize_level_references() returns a character vector.