Description Usage Arguments Details Value Author(s) Examples
Perform function tests for the different inference types and prior models.
1 2 3 4 5 |
outfile |
String. A file name giving the file where output plots should be stored. If NULL,
the user is asked for a file name via CLI. Unused, if |
plotresults |
Boolean. If TRUE, result plots are generated for each test and stored in
file |
dataset |
A sample dataset, e.g. generated by |
phit |
A sample network adjacency matrix, e.g. generated by |
stimuli |
A list with sample stimuli, e.g. generated by |
debug |
Boolean. Debug mode switch. |
... |
Further arguments passed to the |
run_checks
Run a set of tests to check whether all ddepn functions are working. The following tests are performed:
[1] | "GA, BIC optimisation" |
[2] | "GA, uniform prior" |
[3] | "GA, laplaceinhib, two types, lambda fix" |
[4] | "GA, laplaceinhib, two types, lambda integrated" |
[5] | "GA, laplace, one type, lambda fix" |
[6] | "GA, laplace, one type, lambda integrated" |
[7] | "GA, scalefree" |
[8] | "inhibMCMC, uniform prior" |
[9] | "inhibMCMC, laplaceinhib, two types, lambda fix" |
[10] | "inhibMCMC, laplaceinhib, two types, lambda integrated" |
[11] | "inhibMCMC, laplace, one type, lambda fix" |
[12] | "inhibMCMC, laplace, one type, lambda integrated" |
[13] | "inhibMCMC, scalefree" |
[14] | "inhibMCMC, laplaceinhib, two types, sample lambda" |
A simple ddepn wrap function defining a default call of ddepn
for the checks.
Function for clearing the R-console.
Matrix with the test results, where the first column holds the test and the second the result (passed or failed).
Christian Bender
1 2 3 4 5 | ## Not run:
library(ddepn)
tests <- run_checks(plotresults=FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.