Thank you for the quick response. There may be different model assumptions that work better, but I am interested in this form:
because it would be straight forward to extend it to other models besides linear regression. However, I am not sure that either 1) this form can be coded in TMB, and 2) if I have done it correctly. In this code, both have random components: Y (represented in the classic errors) and X (the del's) . If this formulation cannot be executed in TMB then I will seek other solutions (JAGS or STAN, perhaps), but I was hoping to stay in the world of likelihood (and learn some TMB at the same time). Thanks again for taking the time to review this issue.
Regards, Darren