calcVDPGain: calcVDPGain function

View source: R/VarietyDevPipe.R

calcVDPGainR Documentation

calcVDPGain function

Description

calcVDPGain function

Usage

calcVDPGain(nEntryVec, nFinal, cov)

Arguments

nEntryVec

nStages vector with number of individuals at each stage

nFinal

numeric how many individuals are going to the marketing dept

cov

matrix covariances as came out of calcVDPcovMat

Details

Call this function on a grid of budget equal VDPs. Wrapper function to call the truncation point and gain functions with elements from the grid

Value

numeric expected gain from the VDP

Examples

gains <- sapply(testGrid, calcVDPGain, 
                nFinal=bsd$nToMarketingDept, cov=vdpCovMat)


jeanlucj/BreedSimCost documentation built on July 21, 2023, 1:59 a.m.