View source: R/VarietyDevPipe.R
calcVDPGain | R Documentation |
calcVDPGain function
calcVDPGain(nEntryVec, nFinal, cov)
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 |
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
numeric expected gain from the VDP
gains <- sapply(testGrid, calcVDPGain,
nFinal=bsd$nToMarketingDept, cov=vdpCovMat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.