monte_carlo {dexisensitivity} | R Documentation |
Monte Carlo Simulation on a Decision Tree
Description
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".
Usage
monte_carlo(tree, num_runs, write_to_file = NULL)
Arguments
tree |
|
num_runs |
|
write_to_file |
|
Value
A matrix
containing the results of the Monte Carlo simulation.
Examples
tree <- dexisensitivity::masc2
MC <- monte_carlo(tree, 100)
[Package dexisensitivity version 1.0.1 Index]