Description Usage Arguments Value Examples
OpenCPU wrapper: run risk calculation and convert results to JSON format
1 2 3 4 5 6 | opencpu_simulate_risk(
config = config_read(),
usePoisson = TRUE,
debug = TRUE,
lean = TRUE
)
|
config |
config object as retrieved by |
usePoisson |
should a poisson proccess (see function dose_perEvent()) be used to calculate the dose_perEvent (TRUE) or just the exposure_perEvent column (FALSE), (default: TRUE) |
debug |
print debug information (default: TRUE) |
lean |
if |
JSON list with parameters of user defined random distribution and corresponding values
1 2 3 4 5 6 7 8 9 | ### Example simulation run
## Read from JSON
config_json <- kwb.qmra::opencpu_config_read()
config <- jsonlite::fromJSON(config_json)
## Optionally directly import from CSVs
# config <- kwb.qmra::config_read()
risk <- kwb.qmra::opencpu_simulate_risk(config)
risk_json <- jsonlite::toJSON(risk, pretty = TRUE)
writeLines(text = risk_json, "risk.json")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.