Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set seed #151

Open
lindeloev opened this issue Jan 4, 2023 · 0 comments
Open

Set seed #151

lindeloev opened this issue Jan 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lindeloev
Copy link
Owner

There should be a seed-argument for all functions involving randomness cf this question (and comment-answer) on StackOverflow: https://stackoverflow.com/questions/73416610/why-is-set-seed-not-working-for-mcp-r-package

Suggested behavior for mcp():

  • mcp(..., seed = 42) sets a seed before producing chains "random" numbers, passing them as seeds to rjags chains.
  • mcp(..., seed = c(1,2,3)) requires length(seed) == length(chains) and passes these seeds directly to rjags chains.
  • mcp(..., seed = NULL) (default) lets rjags set seeds for the chains.

tidy_samples(), fitted(), plot(), etc. should just accept an atomic numeric seed or NULL.

@lindeloev lindeloev added the enhancement New feature or request label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant