ABSTRACT
The Monte Carlo and discrete-event simulation code associated with the Simulation 101 pre-conference workshop (offered at the 2006, 2007, and 2008 Winter Simulation Conferences) is available in both C and R. This paper begins with general instructions for downloading, compiling, and executing the software. This is followed by detailed explanations of two programs that are representative of the software suite: craps uses Monte Carlo simulation to estimate the probability of winning the dice game Craps, and ssq2 uses discrete-event simulation to estimate several measures of performance associated with a single-server queue.
- Bengtsson, H. 2003, March. The R.oo package -- object-oriented programming with references using standard R code. In Proceedings of the 3rd International Workshop on Distributed Statistical Computing (DSC 2003), ed. K. Hornik, F. Leisch, and A. Zeileis. Vienna, Austria.Google Scholar
- Leemis, L. M., and S. K. Park. 2006. Discrete-event simulation: A first course. Upper Saddle River, NJ: Pearson Prentice Hall. Google ScholarDigital Library
- R Development Core Team 2008, August. Writing R extensions. Available via (http://cran.r-project.org/manuals.html) {accessed August 1, 2008}.Google Scholar
- The R Foundation 2008. The R project for statistical computing. Available via (http://www.r-project.org/) {accessed August 1, 2008}.Google Scholar
- Monte Carlo and discrete-event simulations in C and R
Recommendations
Randomized Dimension Reduction for Monte Carlo Simulations
We present a new unbiased algorithm that estimates the expected value of f(U) via Monte Carlo simulation, where U is a vector of d independent random variables, and f is a function of d variables. We assume that f does not equally depend on all its ...
Comments