Skip to content

Commit

Permalink
Merge pull request #446 from RobFryer/VDS_cl_seed
Browse files Browse the repository at this point in the history
Imposex assessment - ensure reproducibility
  • Loading branch information
RobFryer authored Mar 5, 2024
2 parents 2e7b88d + a851edc commit 20fb051
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/proportional_odds_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ ctsm.VDS.cl <- function(fit, nsim = 1000) {

indexID <- setdiff(names(fit$par), cutsID)

set.seed(fit$seed)

data <- MASS::mvrnorm(nsim, fit$par, fit$vcov)

data.cuts <- data[, cutsID, drop = FALSE]
Expand Down

0 comments on commit 20fb051

Please sign in to comment.