1) Can I safely ignore it?
2) If it is a false positive, what set it off?
On Saturday, September 17, 2016 at 1:58:54 PM UTC-4, Patrick Sadil wrote:1) Can I safely ignore it?
http://mc-stan.org/misc/warnings.html#parser-warnings
Does the function that fills z have a constant derivative?
2) If it is a false positive, what set it off?Left-hand-side of sampling statement:z ~ multi_normal_cholesky(...)
Hi Ben,Thanks for the quick reply. As you may have guessed that I'm pretty new to this, and I'm not sure how to provide the most useful information.
On Saturday, September 17, 2016 at 2:10:19 PM UTC-4, Ben Goodrich wrote:On Saturday, September 17, 2016 at 1:58:54 PM UTC-4, Patrick Sadil wrote:1) Can I safely ignore it?
http://mc-stan.org/misc/warnings.html#parser-warnings
Does the function that fills z have a constant derivative?I'm sorry, but I'm not entirely sure. I think so? By 'function that fills z' do you mean the line: z ~ multi_normal_cholesky(beta_x, L_Omega); ? I
But, do you instead mean the part in the transformed parameters block:
To clarify, what I'm confused about is why the parser would have told me that there might be a non-linear transform on the left-hand side of this sampling statement when there's nothing besides the 'z' to the left of the '~'.
--
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.
To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Okay. So, is it accurate to summarise this as, the parser threw a warning at the sampling statement because it was being asked to perform operations on the target for a variable that was not declared in the parameters block?
Could I safely avoid the warning by instead transforming my data outside of stan? So, rather passing an N by D array, y, of 0s and 1s, I would instead give stan an N by D matrix of reals such that each 0 is replaced by a call to> runif(n=1, min = -1, max = 0)and each 1 is replaced by> runif(n = 1, min = 0, max = 1)?Then, the sampling statement could just be:y ~ multi_normal_cholesky(beta_x, L_Omega);