Left Hand Side Sampling Error

44 views
Skip to first unread message

Markian Pahuta

unread,
Oct 24, 2014, 11:42:17 PM10/24/14
to stan-...@googlegroups.com
Hi,

I am using a multivariate normal likelihood. However, not all of my observations contain all data points. So I have created a temporary vector for each observation which excludes missing data points. As a result, I get the following warning: 

DIAGNOSTIC(S) FROM PARSER:


Warning (non-fatal): Left-hand side of sampling statement (~) contains a non-linear transform of a parameter or local variable.
 
You must call increment_log_prob() with the log absolute determinant of the Jacobian of the transform.
 
Sampling Statement left-hand-side expression:
    temp1
~ multi_normal_cholesky_log(...)


I just wanted to ask whether I need to do something additional to make the code work correctly? all seems to work OK right now

Bob Carpenter

unread,
Oct 24, 2014, 11:54:18 PM10/24/14
to stan-...@googlegroups.com
No, that won't require a Jacobian. Just selecting
things and including them based on data is a linear
operation.

- Bob
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages