build.project {denvax} | R Documentation |
Creates an ROI estimation project.
Description
Creates an ROI estimation project.
Usage
build.project(targetdir, overwrite = FALSE, copy_pub = TRUE)
Arguments
targetdir |
path to enclosing directory. If this directory does not exist, will attempt to create it (recursively) |
overwrite |
overwrite existing files corresponding to the project skeleton elements? |
copy_pub |
copy the '/pub' folder (which contains the analyses from the publication) |
Details
This function sets up the skeleton of an analysis to go from seroprevalence data to the ROI estimation surface.
That skeleton uses a series of separate scripts for each analytical step (fitting, simulation, analysis, and application),
connected via the command line build tool make
. This approach allows clean substitution for various stages (e.g.,
using a different model to generate life histories). The following files are created:
- Makefile
the dependencies for various analysis stages
- README.md
brief notes about project parts
- fit.R
script for fitting seroprevalence data
- synthesize.R
script for generating synthetic populations
- digest.R
script for converting life histories into probability coefficients for ROI calculation
- simple.R
a quick example start-to-finish analysis
Value
logical, indicating error free creation of the project skeleton; there may still be other warnings
Examples
require(denvax)
tardir <- tempdir() # replace with desired target
build.project(tardir)
list.files(tardir, recursive = TRUE)