Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrc-ide/odin.dust

Compile odin to dust
https://github.com/mrc-ide/odin.dust

Last synced: about 2 months ago
JSON representation

Compile odin to dust

Awesome Lists containing this project

README

        

# odin.dust

[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![R build status](https://github.com/mrc-ide/odin.dust/workflows/R-CMD-check/badge.svg)](https://github.com/mrc-ide/odin.dust/actions)
[![CodeFactor](https://www.codefactor.io/repository/github/mrc-ide/odin.dust/badge)](https://www.codefactor.io/repository/github/mrc-ide/odin.dust)
[![codecov.io](https://codecov.io/github/mrc-ide/odin.dust/coverage.svg?branch=master)](https://codecov.io/github/mrc-ide/odin.dust?branch=master)

Compile an [odin](https://mrc-ide.github.io/odin/) model to work with [dust](https://mrc-ide.github.io/dust/), so that a stochastic model can be run in parallel, for example in a particle filter such as [mcstate](https://mrc-ide.github.io/mcstate/).

This works only for models that are discrete time, and makes sense only for models that are stochastic. Within these models you cannot use `output()`, interpolation functions or delays. Not all distributions are supported by dust.
See `vignette("porting")` for details.

## Installation

Please install from our [r-universe](https://mrc-ide.r-universe.dev/):

```
install.packages(
"odin.dust",
repos = c("https://mrc-ide.r-universe.dev", "https://cloud.r-project.org"))
```

If you prefer, you can install from GitHub with remotes:

```
remotes::install_github("mrc-ide/odin.dust")
```

You will need recent versions of the `dust` and `odin` to use this package, which can be installed in the same way.

## License

MIT © Imperial College of Science, Technology and Medicine