You're simulating very little random noise around your simulated X with your "MCMC samples", which is what's reflected in your "CI".
Btw, if you want to directly estimate correlations, you can model the two (or more) time-varying demographic parameters as multivariate normal and estimate the correlation coefficient(s).
--
*** Three hierarchical modeling email lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
(3) HMecology (this list): for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2016, 2021) and Schaub & Kéry (2022)
---
You received this message because you are subscribed to the Google Groups "hmecology: Hierarchical Modeling in Ecology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hmecology+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hmecology/20b2720e-f495-4de3-b260-5cd6ee98b1fcn%40googlegroups.com.
You're not interested in the frequentist 95% CI around the correlation coefficient of your sample, in this case the 2 vectors of length 15 that you simulated. The correlation coefficient is just a single value that you're computing for each MCMC sample from your posterior.
Therefore, when you do this for each MCMC sample, you have draws from the posterior of the correlation between your time varying parameters.
On Feb 21, 2025, at 4:25 PM, 'John C' via hmecology: Hierarchical Modeling in Ecology <hmec...@googlegroups.com> wrote:
Oh, I see what Tomas means just playing around with this quickly. I've repeated the following a few times with different nData and so forth. Yeah, seems like one should probably should use the correlation across the posterior of posterior-predicted parameters. Kind of like a true Monte Carlo assessment or parametric bootstrap or something.
To view this discussion visit https://groups.google.com/d/msgid/hmecology/ab522e71-b15a-471c-ac6c-35fab77d4a53n%40googlegroups.com.
--
*** Three hierarchical modeling email lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
(3) HMecology (this list): for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2016, 2021) and Schaub & Kéry (2022)
---
You received this message because you are subscribed to the Google Groups "hmecology: Hierarchical Modeling in Ecology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hmecology+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hmecology/CAGy9Uw8O4b2iO92Gb5HxjqPA-TOW68tCk-%2Biyxm5zcyKXKAH8A%40mail.gmail.com.
Hi Tomas,
I think it is important to consider the context in which we have used the correlation before suggesting that BPA 2012 is wrong. We fitted an integrated population model and then did a retrospective population analysis to understand the demographic drivers in the population. To do this, we calculated the correlation coefficient between the estimated population growth rate and the estimated demographic rates. Since the population growth rate and the demographic rates had estimation errors, we calculated the posterior distribution of the correlation coefficient. Thus, instead of having a single value, we have a distribution that takes into account the uncertainty in the values used to calculate the correlation coefficient. This is useful, for example, to compare the correlation coefficient between growth rate and survival with that between growth rate and productivity, and to test whether one is greater than the other. Or to test whether the correlation coefficient differs from some fixed value. This limits the inference to the case study, i.e. we can say retrospectively what is the probability that one correlation coefficient was greater than the other, given the estimation uncertainty. If there were no estimation uncertainty, there would be no uncertainty in the correlation coefficients. One would be greater than the other. That is all. We are not making any inferences about other hypothetical populations, so we do not need such a confidence interval, which you can get from (e.g.) cor.test. Without this context, we are comparing apples and oranges.
By the way, another and more formal way of doing a retrospective analysis is the 'life table response experiment', one variant of which is a variance decomposition of the population growth rate (Koons et al. 2016, DOI: 10.1111/ele.12628).
Kind regards
Michael
To view this discussion visit https://groups.google.com/d/msgid/hmecology/CAGy9Uw-kWhUeUdASswWKAfmdzjLG9uEGzSq-az%2BZVOUiWRXusQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/hmecology/1762e734-9615-482e-8c8f-fc56611212fen%40googlegroups.com.