candidatesFung: Candidates with fungible costs

Description Usage Arguments Value Examples

View source: R/models.R

Description

Based on summary data for candidates, finds the optimal order to select those candidates, as well as some statistics about them. Some of those statistics are computed by a Monte Carlo simulation.

Usage

1
candidatesFung(d, par, computeExpComp = F, seed = 10)

Arguments

d

Summary data with candidates

par

Parameters object with model parameters

computeExpComp

Whether to compute expected competition for all candidates for all numbers of potential competitors

seed

Seed for random generator

Value

List with two data.tables. dordered lists all the candidates in the optimal order and with some statistics. dcanddraws includes all the random draws and their outcomes.

Examples

1
2
3
4
5
6
par = Parameters$new()
d = loadData(par = par)
d$Target = 'Others'
d$Target[1:5] = 'Spike'
d$Target[6:10] = 'Recombinant'
candidate = candidatesFung(d, par)

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