Skip to content

Cannot set priors for hierarchical ddm #365

Answered by digicosmos86
TeaforTwo1011 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TeaforTwo1011,

Could you provide a bit more details about what model are you trying to build?

From the code that you have shared, you have specified regressions for each parameter, therefore, you need to specify priors for each regression term. Let's say that you are specifying a regression on v: v ~ 1 + (1|subj_id), then in the corresponding dictionary in include, you need to specify priors like this:

model = hssm.HSSM(
    model="ddm",
    include=[
        {
            "name": "v",
            "formula": "v ~ 1 + (1|subj_id)",
            "priors": {
                  "Intercept": {"name": "Uniform", "lower": -2.0, "upper": 2.0},
                  "1|subj_id": {"name": "Normal", "…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AlexanderFengler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants