Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poisson response imputation compilation error #419

Open
KonstantinosChristopoulos opened this issue Feb 3, 2024 · 0 comments
Open

Poisson response imputation compilation error #419

KonstantinosChristopoulos opened this issue Feb 3, 2024 · 0 comments

Comments

@KonstantinosChristopoulos

Hi everyone,

I am trying to impute a response variable that ~Poisson or ~Gamma-Poisson but I get this compilation error probably because Stan doesn't like constraints in the model compartment.

25: model{
26: vector[3147] R_merge;
27: vector<lower=0>[3147] lambda;
^
28: phi ~ exponential( 1 );
29: D ~ normal( 0 , 3 );

Expected "[" expression "]" for vector size.

Is there any way to deal with this within the Ulam environment without having to hardcode everything into Stan? You cannot get the stancode() before the it compiles I believe, so ones has to write everything from scratch.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant