open-AIMS / bayesnec

Bayesian No-Effect-Concentration estimation in R
https://open-AIMS.github.io/bayesnec
Other
11 stars 6 forks source link

Message when concantenating models of the same fit #122

Closed beckyfisher closed 1 year ago

beckyfisher commented 1 year ago

The following gives an error (not unexpectedly) but the error message seems not suitable:

c(fit, fit) Only nec4param is fitted, no model averaging done. Perhaps try setting better priors, or check ?show_params to make sure you have the correct parameter names for your priors. Returning nec4param. Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), :'data' must be of a vector type, was 'NULL'

beckyfisher commented 1 year ago

This occurs when two bayesnecfits of the same model are concatenated. We need to update the function to return a more informative message when this occurs.

beckyfisher commented 1 year ago

Already addressed