optim.samplesize: Calculates the optimal sample size for the future trial.

View source: R/optim.samplesize.R

optim.samplesizeR Documentation

Calculates the optimal sample size for the future trial.

Description

Calculates the optimal sample size for the future trial.

Usage

optim.samplesize(evsi, setup, pp, Pop, Time, wtp = NULL, Dis = 0.035)

Arguments

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)

Value

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.


annaheath/EVSI documentation built on June 25, 2022, 6:26 a.m.