dmphillippo / multinma

Network meta-analysis of individual and aggregate data in Stan
https://dmphillippo.github.io/multinma
35 stars 17 forks source link

Indexing out of range error with StanHeaders 2.26 #23

Closed dmphillippo closed 1 year ago

dmphillippo commented 1 year ago

The latest version of StanHeaders (2.26.25, released 2023-05-17) introduces an "indexing out of range" error when trying to run models without any regression terms. The error looks like the following:

[1] "Error : Exception: vector[min] indexing: accessing element out of range. index 28 out of range; expecting index to be between 1 and 27  (in '/include/transformed_parameters_common.stan' at line 25; included from 'model_binomial_1par' at line 21)"
[1] "error occurred during calling the sampler; sampling not done"
dmphillippo commented 1 year ago

Fixed in latest development version, CRAN release due within two weeks.

In the meantime, development version can be installed from r-universe:

install.packages("multinma", repos = c("https://dmphillippo.r-universe.dev", getOption("repos")))