View source: R/optim.samplesize.R
optim.samplesize | R Documentation |
Calculates the optimal sample size for the future trial.
optim.samplesize(evsi, setup, pp, Pop, Time, wtp = NULL, Dis = 0.035)
evsi |
An evsi object that calculates the evsi by sample size |
setup |
The setup costs of the trial can be given as a vector to represent uncertainty in the costs |
pp |
The per person cost of the trial, can be given as a vector to represent uncertainty in these costs. |
Pop |
The incidence population level |
Time |
The time horizon. |
wtp |
The willingness-to-pay value |
Dis |
The Discount rate (default at 0.035) |
SS.max The optimal sample size.
ENBS The Expected Net Benefit of Sampling at the optimal sample size
SS.I The interval for which the ENBS is within 5
ENBS.I The ENBS values which correspond to 5 used for plotting purposes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.