README.md

This repository is an R package for the CEA class at UMN. To directly download this package, type

if (!require(devtools)) install.packages("devtools")
devtools::install_github("syzoekao/CEAutil", dependencies = TRUE)

To have a physical copy and to edit the code, you can also clone the repository by clicking the "Clone or download" button.

This package include three primary functionalities: (1) functions that transform the decision tree created by Amua software to R function that can be called by dampack CEA functions; (2) a template Markov model function and a Markov model wrapper that can be called by dampack CEA functions; (3) a function generate R code to run gen_psa_samp() in dampack.

Decision tree related functions

Markov model related functiosn

Generate R code for gen_psa_samp() in dampack

You can also generate the R code via a built in R shiny app. Run the following code:

fpath <- system.file("app", package="CEAutil")
shiny::runApp(paste0(fpath, "/app.R"))

The code would launch a Shiny app interface.

You can fill out the name of the paramter, the distribution, and the parameters of the distribution in the input area on the left-hand side. Each parameter that you input will generate a row in the parameter table on the right-hand side. After you finish filling out the information of all the parameters. Click the "generate code" button. The app will generate the gen_psa_samp code for you.



syzoekao/CEAutil documentation built on Oct. 31, 2021, 12:29 a.m.