Package: rbi 1.0.0.9000

rbi: Interface to 'LibBi'

Provides a complete interface to 'LibBi', a library for Bayesian inference (see <https://libbi.org> and Murray, 2015 <doi:10.18637/jss.v067.i10> for more information). This includes functions for manipulating 'LibBi' models, for reading and writing 'LibBi' input/output files, for converting 'LibBi' output to provide traces for use with the coda package, and for running 'LibBi' to conduct inference.

Authors:Pierre E. Jacob [aut], Anthony Lee [ctb], Lawrence M. Murray [ctb], Sebastian Funk [aut, cre], Sam Abbott [ctb]

rbi_1.0.0.9000.tar.gz
rbi_1.0.0.9000.zip(r-4.5)rbi_1.0.0.9000.zip(r-4.4)rbi_1.0.0.9000.zip(r-4.3)
rbi_1.0.0.9000.tgz(r-4.4-any)rbi_1.0.0.9000.tgz(r-4.3-any)
rbi_1.0.0.9000.tar.gz(r-4.5-noble)rbi_1.0.0.9000.tar.gz(r-4.4-noble)
rbi_1.0.0.9000.tgz(r-4.4-emscripten)rbi_1.0.0.9000.tgz(r-4.3-emscripten)
rbi.pdf |rbi.html
rbi/json (API)
NEWS

# Install 'rbi' in R:
install.packages('rbi', repos = c('https://sbfnk.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/sbfnk/rbi/issues

On CRAN:

8.01 score 24 stars 1 packages 352 scripts 414 downloads 40 exports 16 dependencies

Last updated 6 months agofrom:2de0f5e6c0. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 29 2024
R-4.5-winNOTEOct 29 2024
R-4.5-linuxNOTEOct 29 2024
R-4.4-winNOTEOct 29 2024
R-4.4-macNOTEOct 29 2024
R-4.3-winNOTEOct 29 2024
R-4.3-macNOTEOct 29 2024

Exports:add_blockattach_databi_contentsbi_file_summarybi_generate_datasetbi_modelbi_readbi_writeenable_outputsextract_samplefilterfixflattengenerate_datasetget_blockget_constget_dimsget_nameget_tracesinsert_linesinstalled_libbi_versionjoinlibbilocate_libbioptimisepredictprint_logread_libbiremove_linesreplace_allrewriterunsamplesample_obssave_libbiset_namesimulateupdatevar_nameswrite_model

Dependencies:clidata.tablegluelifecyclemagrittrncdf4plyrprocessxpsR6Rcppreshape2rlangstringistringrvctrs

Collection of SIR models for LibBi

Rendered fromidd_models.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2023-07-12
Started: 2023-07-11

Introduction to rbi

Rendered fromrbi.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2023-07-26
Started: 2023-07-26

Readme and manuals

Help Manual

Help pageTopics
Add a block to a LibBi modeladd_block add_block.bi_model
Attach a new file or data set to a 'libbi' objectattach_data attach_data.libbi
Bi contentsbi_contents
NetCDF File Summarybi_file_summary
Bi Generate Datasetbi_generate_dataset
Bi Modelbi_model
Bi Readbi_read
Create (e.g., init or observation) files for LibBibi_write
Enable outputting variables in a 'bi_model'enable_outputs
Check if two models are equal==.bi_model Equals.bi_model `==.bi_model`
Subset and replace model linesExtract_assign.bi_model [<-.bi_model `[<-.bi_model`
Extract a sample from a 'LibBi' run.extract_sample
Subset model linesExtract.bi_model [.bi_model `[.bi_model`
Using the LibBi wrapper to filterfilter filter.bi_model filter.libbi
Fix noise term, state or parameter of a libbi modelfix fix.bi_model
Flatten list of data frames This function takes a list of data frames (such as, for example, returned by 'bi_read') and converts it to a flat data frameflatten
Generate Datasetgenerate_dataset
Get the contents of a block in a LibBi modelget_block get_block.bi_model
Get constants in a LibBi modelget_const
Get dimensions in a LibBi modelget_dims
Get the name of a bi modelget_name get_name.bi_model
Get the parameter tracesget_traces
Insert lines in a LibBi modelinsert_lines insert_lines.bi_model
Join multiple 'libbi' objectsjoin join.libbi
LibBi Wrapperlibbi
Using the LibBi wrapper to logLiklogLik logLik.libbi
Using the LibBi wrapper to optimiseoptimise optimise.bi_model optimise.libbi
Using the LibBi wrapper to predictpredict predict.libbi
Print the log file a 'libbi' objectprint_log
Read results of a 'LibBi' run from an RDS file or from a folder. This completely reconstructs the saved 'LibBi' objectread_libbi
Remove line(s) and/or block(s) in a libbi modelremove_lines remove_lines.bi_model
Remove variablesremove_vars
Replace all instances of a string with another in a modelreplace_all replace_all.bi_model
Using the LibBi wrapper to rewriterewrite rewrite.bi_model rewrite.libbi
Using the LibBi wrapper to launch LibBirun run.libbi
Using the LibBi wrapper to samplesample sample.bi_model sample.libbi
Sample observations from a LibBi model that has been runsample_obs
Write results of a 'LibBi' run to an RDS filesave_libbi save_libbi.libbi
Set the name of a bi modelset_name set_name.bi_model
Using the LibBi wrapper to simulatesimulate simulate.bi_model simulate.libbi
Print summary information about a 'libbi' objectsummary summary.libbi
Check if two models are unequal!=.bi_model Unequals.bi_model `!=.bi_model`
Update a libbi objectupdate update.libbi
Get variable names in a LibBi modelvar_names
Writes a bi model to a file.write_model write_model.bi_model write_model.libbi