update_adterms {brms}  R Documentation 
Update Formula Addition Terms
Description
Update additions terms used in formulas of brms. See
additionterms
for details.
Usage
update_adterms(formula, adform, action = c("update", "replace"))
Arguments
formula 
Twosided formula to be updated. 
adform 
Onesided formula containing addition terms to update

action 
Indicates what should happen to the existing addition terms in

Value
An object of class formula
.
Examples
form < y  trials(size) ~ x
update_adterms(form, ~ trials(10))
update_adterms(form, ~ weights(w))
update_adterms(form, ~ weights(w), action = "replace")
update_adterms(y ~ x, ~ trials(10))
[Package brms version 2.21.0 Index]