portfolioPriceTaker: Optimal portfolio for a price taker

Description Usage Arguments Value Examples

View source: R/main.R

Description

Computes the optimal portfolio for a price-taking country. This is done by calling optimisation function optimizeGrid() by optimising using decreasing step sizes (see step) on benefits function countryNetBenefits()

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
portfolioPriceTaker(
  parameters = NULL,
  population,
  gdp_pc,
  frac_high_risk,
  loss2yr,
  price,
  steps = c(10, 1, 0.1),
  candidateFile = NULL,
  lambda = 1,
  return_benefit_args = FALSE
)

Arguments

parameters

Parameters object with model parameters

population

Country population (in millions)

gdp_pc

Country GDP per capita (in thousand $)

frac_high_risk

Fraction of population that is high risk

loss2yr

Cumulative percent of GDP lost because of pandemic over two years

price

Market price for manufacturing capacity ($ per course / year)

steps

Steps to optimize over. By default three step-sizes are used in succession: 10, 1 and 0.1.

candidateFile

File with candidate data

lambda

Lagrange multiplier. Should be one, unless trying to solve problem with constrained budget.

return_benefit_args

if TRUE, then an extra object is returned, that can then be used as input to countryNetBenefits()

Value

List with information on optimal portfolio. Includes investment in every candidate, benefits, cost, and total capacity.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
population <- 31.99
gdp_pc <- 6.71
frac_high_risk <- 0.131
loss2yr <- 0.269
price <- 4
portfolio <- portfolioPriceTaker(population=population, gdp_pc=gdp_pc,
                   frac_high_risk=frac_high_risk, loss2yr=loss2yr, price=price)

## End(Not run)

jc-castillo/vaccineEarlyInvest documentation built on Sept. 29, 2020, 12:48 p.m.