Skip to contents

Converts formulas to strings

Usage

as_string_formula(formula)

Arguments

formula

A model formula that may use standard fixed effects, random effects using lme4 syntax (see re()), and random walks defined using the rw() helper function.

Value

A character string of the supplied formula

See also

Functions used to help convert formulas into model designs construct_re(), construct_rw(), enw_formula(), enw_manual_formula(), parse_formula(), remove_rw_terms(), re(), rw_terms(), rw(), split_formula_to_terms()

Examples

epinowcast:::as_string_formula(~ 1 + age_group)
#> [1] "~1 + age_group"