Skip to content

Issue with standard priors for Gompertz model #51

@OBaerenbold-Lumanity

Description

@OBaerenbold-Lumanity

Hi Gianluca,

Thanks for the great package!

There appears to be an issue with the standard priors for the Gompertz model in version 1.1.2. Line 307 and following in utils_fit_models.R and line 57 in Gompertz.stan define the prior for alpha as Gamma(0,5) which causes an error in Stan due to the shape parameter needing to be strictly greater than 0.

I suspect either line 328 should include "gom" while line 330 shouldn't which leads to a Gamma(0.1,0.1) prior, or alternatively alpha is supposed to be unrestricted and have a Normal(0,5) prior. As a quick fix I currently just run fit.models with 'priors=list("gompertz"=list(a_alpha=0.1,b_alpha=0.1))' instead.

Best,
Oliver

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions