Summarizes the simulated total distribution with its moments, coefficient of
variation, range, and a seven-point percentile grid. The grid is wider than
the three percentiles carried on the mcs object itself.
Usage
# S3 method for class 'mcs'
summary(object, ...)Value
An object of class "summary.mcs", a list with components:
- num_sims
Number of simulation draws.
- total_mean, total_variance, total_sd
Moments of the simulated total.
- cv
Coefficient of variation,
total_sd / total_mean.NAwhen the mean is zero.- total_min, total_max
Range of the simulated total.
- percentiles
Named numeric vector of the P5, P10, P25, P50, P75, P90 and P95 percentiles.
Examples
task_dists <- list(
list(type = "normal", mean = 10, sd = 2),
list(type = "uniform", min = 8, max = 12)
)
results <- mcs(1000, task_dists)
summary(results)
#> Monte Carlo Simulation Summary
#> ------------------------------
#> Simulations: 1,000
#> Total Mean: 19.98818
#> Total Variance: 5.357506
#> Total Standard Deviation: 2.314629
#> Coefficient of Variation: 0.1158
#> Range: 13.68415 to 26.18159
#>
#> Percentiles:
#> 5% 10% 25% 50% 75% 90% 95%
#> 16.14694 16.95584 18.43670 19.94933 21.61680 23.09368 23.82941
