Description Usage Arguments Details Value
View source: R/calcPatientCostofTests.R
freq_i \times count_i \times cost_i
| 1 | calcPatientCostofTests(data, COSTS, x3 = TRUE)
 | 
| data | IDEA study data set | 
| COSTS | Named vector each test/procedure and unit costs. If a list of cost is provided then the named mean value is used. | 
| x3 | Should the smear and culture be multiplied by 3? It is standard practice to perform 3 of each with a sputum sample. | 
$freq$ are when a single entry in the dataset represent more that one unit cost. $count$ are the numbeer of separate occasion at test is taken. $cost$ is the unit cost.
Most frequencies are singular but some or >1. Some costs consist of more than element too and these are hard-coded in to the function; If a BAL is taken we include the cost of the procedure and the additional cost of a culture and smear if used for these.
Single value per patient (vector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.