Squiggle Hub

edoarad

Updated
/*
Describe your code here
*/

a = normal(2, 5)
Updated
/*
https://docs.google.com/document/d/15tCLPcABYFRLwqx6hF2oV11bOcl7-Pa29r1H7h7oo_o/edit [restricted]
Evaluating the cost effectiveness of adding straw bedding (shortened as EE - environmental enrichment) on pig welfare.
Unmodeled assumptions:
1. The only outcome metric we look at is reduction in tail-biting injuries. (This seems likely to be the most important identifiable metric, and I'd be somewhat surprised [20%] if reduction in tail biting accounts for less than 10% of the impact)
2. Disregarding additional indirect effects
*/

number_of_pigs_in_eu = 120M to 150M // https://ec.europa.eu/eurostat/statistics-explained/index.php?title=Agricultural_production_-_livestock_and_meat 
prevalence_ee_in_eu_now = beta(1,1) // not likely to be very close to 1 
Updated
/*
Describe your code here
*/

a = normal(2, 5)
Updated
// -------------------------
// general functions
// -------------------------
cost_effectiveness(cost, effect) = cost / effect
result(
  charity_cost,
  total_cost,
  effect_in_doubling_consumption,
  effect_in_DALYs
) = Plot.dists(
Updated
cost_effectiveness(cost, effect) = cost / effect
result(charity_cost, total_cost, effect_in_doubling_consumption, effect_in_DALYs) = Plot.dists(
  {
    dists: [
      {
        name: "charity$/doubling",
        value: cost_effectiveness(charity_cost, effect_in_doubling_consumption),
      },
      {
        name: "charity$/DALY",