On 3/11/13 9:05 PM, Sedat Sen wrote:
> Ben,
>
> Thanks for your message. It fixed the problem.
> I have another question. I will be very appreciated if you or some one else can give an answer.
>
> I can obtain results for only objects listed in parameters section of Stan syntax. How can I get the results for
> something, that is transformed parameters, I put in the model section of the syntax? When I put these into parameters
> section It gives an error which says you cannot declare the same thing twice. Let me be more specific. For example in my
> syntax I want to get results for AIC and BIC. I put these and their formula into model statement. I could not find a way
> to see these on my output. I tried to put them into transformed parameters statement just after model statement, RStan
> did not let me do that. When I put transfromed parameters before model statement with AIC and BIC declaration, it did
> not calculate the desired statistics because these 2 declarations require some parameters from model and to be declared
> before these statements.
>
>
> I hope my question is clear to you. I just want to know how to see estimated or calculated values in the output. What do
> I have to do make them listed in the output?
If you want to print a quantity, put it in
the transformed parameters block if it's used
in the model or in the generated quantities block if
it's not.
This may require you to move other definitions up,
but anything that is calculated as a local variable
in the model block can be calculated in the transformed
parameter block and saved.
If you're still having problems and need specifics, you'll
hae to send us an example.
You should define in transformed data if it only depends
on data, but those values don't get printed.
You should also read Andrew's notes to the list :-)
If you want to send the specific model and data that caused
the problem, just mail them to me as attachments (or to the
list as attachments with suffix .txt).
- Bob
>
>
> On Mon, Mar 11, 2013 at 12:12 AM, Ben Goodrich <
goodri...@gmail.com <mailto:
goodri...@gmail.com>> wrote:
>
> On Sunday, March 10, 2013 10:42:36 PM UTC-4, Sedat wrote:
>
> Ben,
>
> I also tried your suggestion and got the same problem again. I was using the level 3optimization in order to
> make it faster before your suggestion. Following the post, in rstan, I executed _set_cppo(mode =
> "debug")_ before calling _stan()._ Nothing has changed. My R is still being closed automatically without showing
> /
> /
>
> //
>
> --
> You received this message because you are subscribed to the Google Groups "stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
>
stan-users+...@googlegroups.com <mailto:
stan-users%2Bunsu...@googlegroups.com>.
> /SS
> /