add_item: Defining parameters that may be used in model calculations

View source: R/input_f.R

add_itemR Documentation

Defining parameters that may be used in model calculations

Description

Defining parameters that may be used in model calculations

Usage

add_item(.data = NULL, ...)

Arguments

.data

Existing data

...

Items to define for the simulation

Details

The functions to add/modify events/inputs use lists. Whenever several inputs/events are added or modified, it's recommended to group them within one function, as it reduces the computation cost. So rather than use two add_item with a list of one element, it's better to group them into a single add_item with a list of two elements.

Value

A list of items

Examples

add_item(fl.idfs = 0)
add_item(util_idfs = if(psa_bool){rnorm(1,0.8,0.2)} else{0.8}, util.mbc = 0.6, cost_idfs = 2500)


Roche/descem documentation built on July 27, 2022, 11:18 a.m.