Calculate a simulated set of expected proportions based on imports, growth rates and a baseline total

addBinomialRate(growthSimulation, baselineExpr = rpois(n(), Est.actual))

Arguments

growthSimulation

- a timeseries with an Growth.actual column and a import column.

baselineExpr

- an expression to derive the baseline total - either a single number or a way of calculating that number from growthSimulation

Value

the timeseries with an expected binomial proportion in the column Proportion.actual.