Skip to content

Commit

Permalink
Merge pull request #4 from openpharma/3-remove-seed-argument-in-metho…
Browse files Browse the repository at this point in the history
…d_bayes-from-vignette

remove ref to method_bayes seed
  • Loading branch information
bailliem authored Dec 4, 2024
2 parents 4592819 + 004c188 commit 36a6d2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ test_that("positive test get_imputed_data (from vignettes)", {
method <- rbmi::method_bayes(
n_samples = N_IMPUTATIONS,
burn_in = 200,
burn_between = 5,
seed = 675442751
burn_between = 5
)

# Subset relevant columns
Expand Down
5 changes: 2 additions & 3 deletions vignettes/Analyse2_with_ADMI.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ library(readr)
library(purrr)
library(rbmi)
library(beeca)
library(rbmiUtils)
set.seed(1974)
data("ADEFF")
## Global constants
Expand Down Expand Up @@ -97,8 +97,7 @@ vars <- rbmi::set_vars(
method <- rbmi::method_bayes(
n_samples = N_IMPUTATIONS,
burn_in = 200,
burn_between = 5,
seed = 675442751
burn_between = 5
)
# Create a dataset with the necessary columns
Expand Down
6 changes: 3 additions & 3 deletions vignettes/Single_analysis_workflow.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ This is an example of the {rbmi} only workflow. The analysis is as follows: Rubi
This example exists to compare with the workflow which saves an ADMI data set, then uses {rbmiUtils} to complete the intended analysis.

```{r}
set.seed(1974)
data("ADEFF")
## Global constants
Expand Down Expand Up @@ -96,12 +97,11 @@ vars <- rbmi::set_vars(
covariates = c("BASE", "STRATA", "REGION")
)
# Define which imputation method to use (here: Bayesian multiple imputation with 150 imputed datsets)
# Define which imputation method to use (here: Bayesian multiple imputation)
method <- rbmi::method_bayes(
n_samples = N_IMPUTATIONS,
burn_in = 200,
burn_between = 5,
seed = 675442751
burn_between = 5
)
# Create a dataset with the necessary columns
Expand Down
3 changes: 1 addition & 2 deletions vignettes/delta_analyse_mi_data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ vars <- rbmi::set_vars(
method <- rbmi::method_bayes(
n_samples = N_IMPUTATIONS,
burn_in = 200,
burn_between = 5,
seed = 675442751
burn_between = 5
)
# Subset relevant columns
Expand Down

0 comments on commit 36a6d2b

Please sign in to comment.