Spark Online Training by Edureka

sample_size: Function to calculate the estimated sample size based on the...

Description Usage Arguments Value


This function will provide the total sample size of your planned cost-effectiveness study. The optimal sample size of your planned cost-effectiveness study is reached when EVPIn (a vector calculated by the evpi_decrease object) is less or equal to (step_ref + step_exp)*cost_indiv


sample_size(object_evpi_decrease, cost_indiv)



: evpi_decrease object. See create_object_evpi_decrease


: cost of an additional inclusion in your planned cost-effectiveness study.


A dataframe containing three vectors : N, N_exp, N_ref, the total number of subjects of your planned cost-effectiveness study, in the experimental group and in the reference group respectively.

Search within the EBASS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.