![]() ![]() Looking at the three components, the case packer is flying. So after we run the line for 1000 (virtual) hours, we take a peek at the data: >head(results) Results = rbind(results, ame(rolls, bags, cases, total)) We can build this out into a larger vector of results through iteration. Thus our model looks like (with some iterations): # Monte Carlo Simulation in R Example We can generate values from the uniform distribution in R using the runif probability function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |