Learn R Programming

rbi (version 0.6.0)

libbi: LibBi Wrapper

Description

libbi allows to call libbi. Upon creating a new libbi object, the following arguments can be given. Once the instance is created, libbi can be run through the run method documented in libbi_run. Note that libbi objects can be plotted using plot if the rbi.helpers package is loaded.

Arguments

model
either a character vector giving the path to a model file (typically ending in ".bi"), or a bi_model object
config
path to a configuration file, containing multiple arguments
options
list of additional arguments to pass to the call to libbi
global_options
deprecated, replaced by options
working_folder
path to a folder from which to run libbi; default to a temporary folder.
path_to_libbi
path to libbi binary; by default it tries to locate libbi
input
input file (given as file name or libbi object or a list of data frames
init
init file (given as file name or libbi object or a list of data frames
obs
observation file (given as file name or libbi object or a list of data frames
run
(boolean) whether to run the model using the which Unix command, after having loaded "~/.bashrc" if present; if unsuccessful it tries "~/PathToBiBin/libbi"; if unsuccessful again it fails.

See Also

libbi_run, libbi_clone

Examples

Run this code
bi_object <- libbi$new(client = "sample",
                       model = system.file(package="rbi", "PZ.bi"),
                       options = list(sampler = "smc2"))

Run the code above in your browser using DataLab