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. See the Details section below for a comprehensive explanation of the supported syntax.

Value

A character string of the supplied formula

Examples

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