Skip to content

Commit

Permalink
Add explicit stats::update
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed Aug 2, 2024
1 parent c1bb3f9 commit 70b380b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/latent_individual.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ epidist_family.epidist_latent_individual <- function(data,
#' @method epidist_formula epidist_latent_individual
#' @family latent_individual
#' @importFrom brms brmsterms
#' @importFrom stats update
#' @export
epidist_formula.epidist_latent_individual <- function(data, family, formula,
...) {
epidist_validate(data)
formula <- brms:::validate_formula(formula, data = data, family = family)

formula <- update(
formula <- stats::update(
formula, delay_central | vreal(obs_t, pwindow_upr, swindow_upr) ~ .
)

Expand Down

0 comments on commit 70b380b

Please sign in to comment.