# NOT RUN {
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qnbinom
vnbinom(3, size = 10, mu = 10)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qnbinom
vnbinom(3, 10, 0.25, stream = 1)
vnbinom(3, 10, 0.25, stream = 2)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qnbinom
vnbinom(1, 10, 0.25, stream = 1)
vnbinom(1, 10, 0.25, stream = 2)
vnbinom(1, 10, 0.25, stream = 1)
vnbinom(1, 10, 0.25, stream = 2)
vnbinom(1, 10, 0.25, stream = 1)
vnbinom(1, 10, 0.25, stream = 2)
set.seed(8675309)
variates <- vnbinom(1000, 10, 0.25, stream = 1)
set.seed(8675309)
variates <- vnbinom(1000, 10, 0.25, stream = 1, antithetic = TRUE)
# }
Run the code above in your browser using DataLab