rw_terms | R Documentation |
This function extracts random walk terms
denoted using rw()
from a formula so that they can be
processed on their own.
rw_terms(formula)
formula |
A model formula that may use standard fixed
effects, random effects using lme4 syntax (see |
A character vector containing the random walk terms that have been identified in the supplied formula.
This function was adapted from code written
by J Scott (under an MIT license) as part of
the epidemia
package (https://github.com/ImperialCollegeLondon/epidemia/).
Functions used to help convert formulas into model designs
as_string_formula()
,
construct_re()
,
construct_rw()
,
enw_formula()
,
enw_manual_formula()
,
parse_formula()
,
re()
,
remove_rw_terms()
,
rw()
,
split_formula_to_terms()
epinowcast:::rw_terms(~ 1 + age_group + location)
epinowcast:::rw_terms(~ 1 + age_group + location + rw(week, location))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.