Skip to contents

This function removes Gaussian process terms denoted using gp() from a formula so they can be processed on their own.

Usage

remove_gp_terms(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 formula object with the Gaussian process terms removed.

Examples

epinowcast:::remove_gp_terms(~ 1 + age_group + gp(week))
#> ~1 + age_group
#> <environment: 0x563368987630>