monte_carlo | R Documentation |
Conducts a Monte Carlo simulation over a provided decision tree for a specified number of runs. Optionally, the function can save the random options selected for the analysis in a .csv file named "MC options.csv".
monte_carlo(tree, num_runs, write_to_file = NULL)
tree |
|
num_runs |
|
write_to_file |
|
A matrix
containing the results of the Monte Carlo simulation.
tree <- dexisensitivity::masc2
MC <- monte_carlo(tree, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.