New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Jacobian transformations for priors #95
Comments
seananderson
referenced
this issue
May 24, 2022
I think this is working and am going to port it over into the cpp file. Tests in inst/jacobian-pcprior-tests.r Some comparisons: Spatial variance, sigma_O (real value = 0.2)
Range (real value = 0.1)
Sigma_obs (real value = 0.04)
B0 (real value = 2)
|
seananderson
added a commit
that referenced
this issue
Jun 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will require an argument flag in
sdmTMB()
since they should only be applied if going to tmbstan, not for marginal maximum likelihood.Regarding the PC prior, from @joenomiddlename:
See screenshots below. And, it looks like I already set it up with the range and SD conditional on range priors separately inside the function, so it's just a matter of somehow only applying the range part once if the range is shared (I'll start a separate issue):
(in
src/utils.h
)The transformation relevant to the Jacobian is just from the part inside the absolute value bars below. The log absolute derivative of the transform, so log(abs(D(transformation))). Then remember whether to add or subtract.
The text was updated successfully, but these errors were encountered: