-
Notifications
You must be signed in to change notification settings - Fork 4
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
soil_incubation.stan #8
Comments
Hi @will246, thanks for reporting this! I was able to generate the same error, but unfortunately don't know the solution. I do suspect that it has to do with the fact that a) the code is almost a decade old, and the underlying software has likely changed! e.g. the eCO2 dataset from SoilR is different and you can load the original like this: download.file('https://github.com/cran/SoilR/raw/1.1-23/data/eCO2.rda',
'eCO2.rda')
load('eCO2.rda') In addition, stan has changed and the function Hopefully the author and Stan developer @bob-carpenter has some insight. |
@dlebauer is likely correct. I had also recently had a look at the case study, and also found some conceptual errors. I'd recommend to rework it a bit more thoroughly and then re-upload it. |
Hi folks. I have some students who might be interested in revising this if you don't mind a longer time horizon. @nsiccha I'm curious what you meant by conceptual errors here. |
I hope everyone had nice holidays. @bob-carpenter and @ktoddbrown: The following are things I would change.
I'd be happy to help with rewriting, improving and/or extending the case study, though I don't think I'll have time before February. What kind of time frame did you have in mind, @ktoddbrown? |
Thank you for your input everyone @dlebauer @ktoddbrown @nsiccha. I was eventually able to get it to run. I used soil_incubation.stan from https://github.com/soil-metamodel/stan/tree/master/soil-incubation. It seems that the syntax in that file is different to that shown on the example page (https://mc-stan.org/users/documentation/case-studies/soil-knit.html). @nsiccha, I noticed the issues with mixing as well. I can look into this further too. |
|
Actually, I used soil_incubation.stan from here: https://github.com/stan-dev/example-models/blob/master/knitr/soil-carbon/soil_incubation.stan. |
Hello there,
When I try to run soil_incubation.stan with the example data from the SoilR package (https://mc-stan.org/users/documentation/case-studies/soil-knit.html), I get the following error:
`Error in stanc(file = file, model_code = model_code, model_name = model_name, :
0
Semantic error in 'string', line 93, column 13 to line 94, column 57:
Ill-typed arguments supplied to function 'integrate_ode'. Available signatures:
((real, real[], real[], data real[], data int[]) => real[], real[], real, real[], real[], data real[], data int[]) => real[,]
Instead supplied arguments of incompatible type: (real, real[], real[], real[], int[]) => real[], real[], real, real[], real[], real[], int[].`
Do you know of any possible reasons for this? Thank you.
The text was updated successfully, but these errors were encountered: