Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pbs-assess/larkin

Fit and forecast from Larkin and Ricker stock-recruitment models
https://github.com/pbs-assess/larkin

Last synced: 2 months ago
JSON representation

Fit and forecast from Larkin and Ricker stock-recruitment models

Awesome Lists containing this project

README

        

# larkin
Forecast from Larkin and Ricker stock-recruitment models

[![R-CMD-check](https://github.com/luke-a-rogers/larkin/workflows/R-CMD-check/badge.svg)](https://github.com/luke-a-rogers/larkin/actions)
[![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)

## Installation

1. Install the R package `cmdstanr` (see ).

``` r
install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
```

2. Install CmdStan (see ).

``` r
cmdstanr::check_cmdstan_toolchain()
cmdstanr::install_cmdstan(cores = parallel::detectCores())
```

3. Install `larkin`.

``` r
remotes::install_github("pbs-assess/larkin")
```

Changes implemented on 21 July 2023
- forecast no longer includes random error. A single, deterministic forecast is generated for each posterior draw.
- timevary input parameter was removed as this is determined by value of prior on omega
- the MLE of larkin model was included as an alternative to Bayesian estimation, in forecast() using cmdstanr's optimize() function