Ecological statistician at Fisheries and Oceans Canada. Estimating salmon species composition on the Fraser River using hydroacoustics. Developing quadrature methods for #NIMBLE
Microbenchmark but basically the difference of precomputing a column sparse matrix before passing it to the function vs within. This may sound silly but I had written my own version of sparse linear algebra so that is why it wasnt clear to me.
January 21, 2026 at 3:18 PM
Microbenchmark but basically the difference of precomputing a column sparse matrix before passing it to the function vs within. This may sound silly but I had written my own version of sparse linear algebra so that is why it wasnt clear to me.
If doing optimization on the log scale of a parameter then need the Jacobian to find posterior mode. If its a penalty term then you do not. That in my experience is the difference.
January 14, 2026 at 5:38 PM
If doing optimization on the log scale of a parameter then need the Jacobian to find posterior mode. If its a penalty term then you do not. That in my experience is the difference.
In fisheries it is the wild west for what a penalty term is vs a prior. The main difference being whether or not a jacobian is included for any transformations. See optimize via stan that gets specific about whether to use jacobians or the prior as a penalty.
January 14, 2026 at 3:42 PM
In fisheries it is the wild west for what a penalty term is vs a prior. The main difference being whether or not a jacobian is included for any transformations. See optimize via stan that gets specific about whether to use jacobians or the prior as a penalty.
Discrete movement in continuous time. The data look like below with blue points detectors that detected an animal. Red lines the latent movement path of the animal.
July 18, 2025 at 9:05 PM
Discrete movement in continuous time. The data look like below with blue points detectors that detected an animal. Red lines the latent movement path of the animal.
Not sure. It should be added if not. Here is a basic example that I have not actually run so may need to be edited. But data input in this case would be the animal ID to link it to the cached count. Let me know if it doesn’t run.
March 16, 2025 at 4:50 PM
Not sure. It should be added if not. Here is a basic example that I have not actually run so may need to be edited. But data input in this case would be the animal ID to link it to the cached count. Let me know if it doesn’t run.
Alternatively, in glmm, I rarely (once) have had anyone worry that the marginal mean and the conditional mean are not the same. I appreciate the discussion by Gory et al. 2020 "A class of generalized linear mixed models adjusted for marginal interpretability" on this topic and keen to hear thoughts.
February 26, 2025 at 7:13 PM
Alternatively, in glmm, I rarely (once) have had anyone worry that the marginal mean and the conditional mean are not the same. I appreciate the discussion by Gory et al. 2020 "A class of generalized linear mixed models adjusted for marginal interpretability" on this topic and keen to hear thoughts.
When log(R) ~ Normal(mu, s^2), then E(R) = mu + s^2/2. So instead, I often see log(R) ~ Normal(mu-s^2/2, s^2), so that E(R) = mu.
But then they add additionally complexity with random effects. But those terms aren't also included in the bias correction. So, what is actually happening?
February 26, 2025 at 7:11 PM
When log(R) ~ Normal(mu, s^2), then E(R) = mu + s^2/2. So instead, I often see log(R) ~ Normal(mu-s^2/2, s^2), so that E(R) = mu.
But then they add additionally complexity with random effects. But those terms aren't also included in the bias correction. So, what is actually happening?