I don't have much to add to what the messages say:
1. binomial_log is deprecated
2. you didn't define the variable t in your inits
Usually Stan is fine initializing randomly on its own and you should
only use custom initialization if random inits fail to converge.
I don't have much to add to what the messages say:
1. binomial_log is deprecated
2. you didn't define the variable t in your inits
Usually Stan is fine initializing randomly on its own and you should
only use custom initialization if random inits fail to converge.
- Bob
> On Sep 20, 2016, at 2:47 PM, jie liu <cathy...@gmail.com> wrote:
>
> Hi All,
>
> Could you please help me to check there messages that shows after I run fit<-stan(file.choose(),iter=1000,chains=2):
>
>
> DIAGNOSTIC(S) FROM PARSER:
> Warning: Deprecated function 'binomial_log'; please replace suffix '_log' with '_lpdf' for density functions or '_lpmf' for mass functions
>
> Error in eval(substitute(expr), envir, enclos) :
> variable does not exist; processing stage=data initialization; variable name=t; base type=int
> In addition: Warning messages:
> 1: In readLines(file, warn = TRUE) :
> incomplete final line found on 'C:\Users\cathy\Desktop\work\baye.stan'
> 2: In is.na(x) : is.na() applied to non-(list or vector) of type 'closure'
> 3: In FUN(X[[i]], ...) : data with name t is not numeric and not used
> failed to create the sampler; sampling not done
>
>
> Thanks!
>
> Jie Liu
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to stan-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <baye.stan><data.dat><datax.dat><stan code.R>
--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/asW31iFlCjk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+unsubscribe@googlegroups.com.
Thanks for your response. I am a new user for Stan. Could you please let me know how to fix it?