Description Usage Arguments Details Value Author(s) See Also Examples
Inference is perform for the
parameters in an SEIR-model based on the data in experiment
.
The actuall class of options
(OptionsML
or
OptionsMCMC
) decides what type of inference is performed.
1 |
experiment |
Data corresponding to an Experiment |
options |
An object of class |
debug |
Boolean (default |
Estimation is performed by calling LadyBug using a .jcall
to the
appropriate method in the Java class
sir.estimate.LadyBug
. Output is read from file and converted
into an appropriate object of class LBInference-class
.
Currently the method branches on the appropriate method using an
if
. Should become a generic method as some point.
Note that the system.out
and system.err
from the java
call are saved in the currented working directory (the directory has
to be writable). After a successfull call the files are deleted
unless one uses the debug
option.
An object of class Inference
U. Feldmann and M. Höhle
LBOptions-class
,LBOptionsML-class
,LBOptionsMCMC-class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | data("csfvML")
ml <- seir(csfvML, csfvML.opts)
ml
#MCMC Inference for the data from the Laevens experiment
data("laevens")
#Modify such that the checks at CRAN are only done with a
#minimum sample size (1000 samples, no thin and a burun of 1000).
if (!RLadyBug.options("allExamples")) {
algo(laevens.opts) <- c(1000,1,1000)
}
#Algo part of the Options
algo(laevens.opts)
inf.mcmc <- seir(laevens,laevens.opts)
#Show some results
inf.mcmc
#Analysis through coda (library coda is called when starting RLadyBug)
samples <- mcmc(samplePaths(inf.mcmc))
plot(samples[,"beta"])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.