Extract PSA results from a treatment

extract_psa_result(x, element, trt)

Arguments

x

The output_psa data frame from the list object returned by RunSim()

element

Variable for which PSA results are being extracted (single string)

trt

Intervention for which PSA results are being extracted (single string)

Value

A dataframe with PSA results from the specified intervention

Examples

if (FALSE) {
extract_psa_result(results$output_psa,"costs","int")
}