
Last chance! 50% off unlimited learning
Sale ends in
Update additions terms used in formulas of brms. See
addition-terms
for details.
update_adterms(formula, adform, action = c("update", "replace"))
Two-sided formula to be updated.
One-sided formula containing addition terms to update
formula
with.
Indicates what should happen to the existing addition terms in
formula
. If "update"
(the default), old addition terms that
have no corresponding term in adform
will be kept. If
"replace"
, all old addition terms will be removed.
An object of class formula
.
# NOT RUN {
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))
# }
Run the code above in your browser using DataLab