Print simulation summary

sim_summary(dataset, dc = get_class(dataset), fun = "", dec = 4)

Arguments

dataset

Simulated data

dc

Variable classes

fun

Summary function to apply

dec

Number of decimals to show

See also

simulater to run a simulation

repeater to run a repeated simulation

Examples

simulater( const = "cost 3", norm = "demand 2000 1000", discrete = "price 5 8 .3 .7", form = c("profit = demand * (price - cost)", "profit5K = profit > 5000"), seed = 1234 ) %>% sim_summary()
#> Constants: #> cost #> 3.0000 #> #> Variables: #> variable n_obs mean sd min p25 median #> demand 1,000 1,973.4028 997.3377 -1,396.0635 1,326.7463 1,960.2058 #> price 1,000 7.0820 1.3832 5.0000 5.0000 8.0000 #> profit 1,000 8,073.5651 5,160.5597 -4,321.7342 4,041.1407 7,242.6875 #> p75 max #> 2,615.8186 5,195.9012 #> 8.0000 8.0000 #> 11,596.0978 25,979.5060 #> #> Logicals: #> TRUE (nr) TRUE (prop) #> profit5K 656 0.656 #>