You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/options.Rmd
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ knitr::opts_chunk$set(
23
23
## Potentially Useful
24
24
25
25
*`macpan2_verbose = FALSE` : Should the [TMB](https://github.com/kaskr/adcomp) computational engine used by `macpan2` be verbose or not (default). In particular, the `silent` argument of `TMB::MakeADFun` gets `!getOption("macpan2_verbose")`.
26
+
*`macpan2_collapse_traj = FALSE` : Should `row` and `col` columns in data frames returned by `mp_trajectory_*()` functions be removed if they provide no information (e.g., if all variables in the trajectory are scalars).
27
+
*`macpan2_collapse_coef = FALSE` : Should `row` and `col` columns in data frames returned by `mp_*_coef()` functions be removed if they provide no information (e.g., if all variables in the trajectory are scalars).
26
28
*`macpan2_session_name = "default"` and `macpan2_log_dir = tools::R_user_dir("macpan2")` : Where to put log files generated by the engine. By default, the path to log files will be `{macpan2_log_dir}/.macpan2/{macpan2_session_name}/log.txt`. If you want to get access to the log file you should set the value of `macpan2_log_dir`. If you want to set `macpan2_log_dir` to the working directory at the time the model is created, you should set `macpan2_log_dir = ""`.
27
29
*`macpan2_tol_hazard_div = 1e-8` : Used by the `mp_hazard()` function to generate an expression that calls the `proportions()` engine function. This option becomes the third tolerance argument to `proportions()`.
28
30
*`macpan2_tol_singular_cov = `1e-6` : Used to determine if estimated
Copy file name to clipboardExpand all lines: vignettes/quickstart.Rmd
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,8 @@ The simulation results are output as a data frame with the following columns:
111
111
-`row`, `col`: Placeholders for variable components in more complicated structured models (not covered in this article, but useful for example when S and I in different age groups or geographic locations are tracked separately).
112
112
-`value`: The simulated value for a particular state and time step.
113
113
114
+
(Note that the `row` and `col` placeholders can be completely omitted by using `option(macpan2_collapse_traj = TRUE)` near the start of your script that calls `mp_trajectory()`)
115
+
114
116
## Processing Results
115
117
116
118
`macpan2` does not provide any data manipulation or plotting tools (although there are a few in `macpan2helpers`). The philosophy is to focus on the engine and modelling interface, but to provide outputs in formats that are easy to use with other data processing packages, like `ggplot2`, `dplyr`, and `tidyr`, all of which readily make use of data in long format.
0 commit comments