Closed LBJlove1 closed 1 year ago
Your variable sigma
is declared both as a parameter (via paramnames
) and a local variable (the double
declaration in your C snippet). It can't be both. Notice that your error message calls your attention to this.
Looks like you want to remove all the local variable declarations in your rprocess C snippet.
P.S. If more help is needed, please provide codes that I can run. You have a data file there that I would need. If you don't want to share the actual data, provide some fake data in the same format.
Thank you very much for your reply, the above problem has been solved, my data file is as follows:
time: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 reports: 1 10 23 45 70 148 155 58 178 340 297 741 521 512 520 405 321 367 390 297 190 92 131 73 61 62 41 35 32 46 97 34 69 43 24 31 14 26 34 71 23 14 60
I want to construct a beta(t) that changes over time. I don't know if the construction of rprocess in the above code is correct, and I hope to get your advice.
@LBJlove1: I am happy to help, but you might provide me with codes that run, rather than expect me to write them myself.
I am happy to help you, but generic requests for advice are not particularly efficient. I encourage you to formulate questions. In particular, whether code is correct or not depends on what it is intended to accomplish. At the moment, I have no idea what you are up to or what you expect the code to do.
You should also have a look at the FAQ.
I am closing this issue for now. Feel free to reopen it if more discussion is warranted.