You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wow. That is an excellent issue ticket. The only thought I had -- and it turns out it was the right one -- is that the original article on this sample() approach via RcppArmadillo is so old ... that it was affected by the one change made in R 3.6.0. See under 'Details' in help(set.seed):
‘sample.kind’ can be ‘"Rounding"’ or ‘"Rejection"’, or partial
matches to these. The former was the default in versions prior to
3.6.0: it made ‘sample’ noticeably non-uniform on large
populations, and should only be used for reproduction of old
results. See PR#17494 for a discussion.
When I use that with your code I get same sample as sample.c gets:
Hello
I ran the following code but I get different results
Here is what I get:
The text was updated successfully, but these errors were encountered: