From ceffe5353730c769a1506f5b1a01110b5ba2c36d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul-Christian=20B=C3=BCrkner?= Date: Tue, 9 Apr 2024 18:30:00 +0200 Subject: [PATCH] minor doc cleaning --- R/brm_multiple.R | 4 ++-- man/brm_multiple.Rd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/brm_multiple.R b/R/brm_multiple.R index cc48e7826..a1ee967bb 100644 --- a/R/brm_multiple.R +++ b/R/brm_multiple.R @@ -55,7 +55,7 @@ #' # fit the model using brms #' fit_imp2 <- brm_multiple(bmi ~ age + hyp + chl, data = imp, chains = 1) #' summary(fit_imp2) -#' plot(fit_imp2, pars = "^b_") +#' plot(fit_imp2, variable = "^b_", regex = TRUE) #' #' # investigate convergence of the original models #' library(posterior) @@ -67,7 +67,7 @@ #' # use the future package for parallelization #' library(future) #' plan(multisession, workers = 4) -#' fit_imp3 <- brm_multiple(bmi~age+hyp+chl, data = imp, chains = 1) +#' fit_imp3 <- brm_multiple(bmi ~ age + hyp + chl, data = imp, chains = 1) #' summary(fit_imp3) #' } #' diff --git a/man/brm_multiple.Rd b/man/brm_multiple.Rd index eefa03bce..abebdc083 100644 --- a/man/brm_multiple.Rd +++ b/man/brm_multiple.Rd @@ -216,7 +216,7 @@ summary(pool(fit_imp1)) # fit the model using brms fit_imp2 <- brm_multiple(bmi ~ age + hyp + chl, data = imp, chains = 1) summary(fit_imp2) -plot(fit_imp2, pars = "^b_") +plot(fit_imp2, variable = "^b_", regex = TRUE) # investigate convergence of the original models library(posterior) @@ -228,7 +228,7 @@ lapply(draws_per_dat, summarise_draws, default_convergence_measures()) # use the future package for parallelization library(future) plan(multisession, workers = 4) -fit_imp3 <- brm_multiple(bmi~age+hyp+chl, data = imp, chains = 1) +fit_imp3 <- brm_multiple(bmi ~ age + hyp + chl, data = imp, chains = 1) summary(fit_imp3) }