set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qpois
vpois(3, lambda = 5)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qpois
vpois(3, 3, stream = 1)
vpois(3, 3, stream = 2)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qpois
vpois(1, 3, stream = 1)
vpois(1, 3, stream = 2)
vpois(1, 3, stream = 1)
vpois(1, 3, stream = 2)
vpois(1, 3, stream = 1)
vpois(1, 3, stream = 2)
set.seed(8675309)
variates <- vpois(100, 3, stream = 1)
set.seed(8675309)
variates <- vpois(100, 3, stream = 1, antithetic = TRUE)
Run the code above in your browser using DataLab