# \#ecology

**URL:** https://discourse.mc-stan.org/tag/ecology/44.md?match_all_tags=true&page=2&tags%5B%5D=ecology

[Latest](https://discourse.mc-stan.org/latest.md) · [Categories](https://discourse.mc-stan.org/categories.md) · [Tags](https://discourse.mc-stan.org/tags.md)

**Page:** 3

---

## [Occupancy modeling package with RStan](https://discourse.mc-stan.org/t/occupancy-modeling-package-with-rstan/23892)

<div class="topic-metadata">

**Author:** [@Richard\_Erickson](https://discourse.mc-stan.org/u/Richard_Erickson)\
**Replies:** 0\
**Last updated:** [August 10, 2021, 1:36pm UTC](https://discourse.mc-stan.org/t/occupancy-modeling-package-with-rstan/23892 "2021-08-10T13:36:46Z")

</div>

I’ve completed the provisional release of my Occupancy Model (also known as Occurrence Model for anyone searching the forum) package. The package is on the USGS Git Repository: UMESC / quant-ecology / occStan · GitLab …

---

## [Divergent transitions in hierarchical model with random effects](https://discourse.mc-stan.org/t/divergent-transitions-in-hierarchical-model-with-random-effects/22645)

<div class="topic-metadata">

**Author:** [@kstudens](https://discourse.mc-stan.org/u/kstudens)\
**Replies:** 14\
**Last updated:** [June 14, 2021, 7:23pm UTC](https://discourse.mc-stan.org/t/divergent-transitions-in-hierarchical-model-with-random-effects/22645 "2021-06-14T19:23:42Z")

</div>

Hello, I’m currently working on a hierarchical model for spruce budworm development times. I’ve constructed my model in Template Model Builder (which by default does maximum likelihood using Laplace approximation for Ga…

---

## [Intraclass correlation coefficient of non-linear parameter](https://discourse.mc-stan.org/t/intraclass-correlation-coefficient-of-non-linear-parameter/22545)

<div class="topic-metadata">

**Author:** [@Benjamin.Larue](https://discourse.mc-stan.org/u/Benjamin.Larue)\
**Replies:** 10\
**Last updated:** [June 4, 2021, 10:24am UTC](https://discourse.mc-stan.org/t/intraclass-correlation-coefficient-of-non-linear-parameter/22545 "2021-06-04T10:24:41Z")

</div>

Hi all! I am trying to estimate the intraclass correlation coefficient (ICC; or repeatability, R, as termed in ecology) of a nonlinear parameter at the individual level after fitting a model with brms. My data are sprin…

---

## [Accounting for selection bias in a survival model](https://discourse.mc-stan.org/t/accounting-for-selection-bias-in-a-survival-model/22757)

<div class="topic-metadata">

**Author:** [@fsdias](https://discourse.mc-stan.org/u/fsdias)\
**Replies:** 4\
**Last updated:** [May 28, 2021, 5:41pm UTC](https://discourse.mc-stan.org/t/accounting-for-selection-bias-in-a-survival-model/22757 "2021-05-28T17:41:13Z")

</div>

Hi, The main goal of this study is to analyse the factors that influence the survival of oak seedlings. We planted 900 acorns in 40 plots. The acorns were all collected from oak woodlands. Each planted acorn was consid…

---

## [Non-linear modelling - Michaelis-Menten](https://discourse.mc-stan.org/t/non-linear-modelling-michaelis-menten/22736)

<div class="topic-metadata">

**Author:** [@prototaxites](https://discourse.mc-stan.org/u/prototaxites)\
**Replies:** 13\
**Last updated:** [May 28, 2021, 3:49pm UTC](https://discourse.mc-stan.org/t/non-linear-modelling-michaelis-menten/22736 "2021-05-28T15:49:54Z")

</div>

Hi all, I’m quite new to Bayesian modelling, and have spent the past couple of months working through Statistical Rethinking. I’ve also read Bayesian Models by Hobbs and Hooten, which has really inspired me to go a bit …

---

## [Modelling spatiotemporal random effects results in](https://discourse.mc-stan.org/t/modelling-spatiotemporal-random-effects-results-in/22217)

<div class="topic-metadata">

**Author:** [@idantene](https://discourse.mc-stan.org/u/idantene)\
**Replies:** 21\
**Last updated:** [May 21, 2021, 4:09pm UTC](https://discourse.mc-stan.org/t/modelling-spatiotemporal-random-effects-results-in/22217 "2021-05-21T16:09:20Z")

</div>

Hey! I’m trying to reproduce the model described in https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/1365-2664.12710 (appendix contains more complete formulations, see https://besjournals.onlinelibrary.wiley…

---

## [Within-individual correlations at different scales](https://discourse.mc-stan.org/t/within-individual-correlations-at-different-scales/21126)

<div class="topic-metadata">

**Author:** [@Benjamin.Larue](https://discourse.mc-stan.org/u/Benjamin.Larue)\
**Replies:** 2\
**Last updated:** [May 14, 2021, 5:51pm UTC](https://discourse.mc-stan.org/t/within-individual-correlations-at-different-scales/21126 "2021-05-14T17:51:56Z")

</div>

Hi everyone, I collected behavior data on bighorn sheep for four consecutive summers. Within each summer I collected 3-6 observations of two distinct behaviors on each individual. Individuals where followed for one to t…

---

## [Weighting observations in quantile regression (for brms)](https://discourse.mc-stan.org/t/weighting-observations-in-quantile-regression-for-brms/22385)

<div class="topic-metadata">

**Author:** [@jmwiniarski](https://discourse.mc-stan.org/u/jmwiniarski)\
**Replies:** 4\
**Last updated:** [May 14, 2021, 9:14pm UTC](https://discourse.mc-stan.org/t/weighting-observations-in-quantile-regression-for-brms/22385 "2021-05-14T21:14:36Z")

</div>

I’m working with a bird migration dataset (birds counted per day during autumn at a a monitoring site across several decades) and I’d like to understand the yearly rate of change in migration timing for different species…

---

## [Capture-Recapture with further impact on survivability](https://discourse.mc-stan.org/t/capture-recapture-with-further-impact-on-survivability/18922)

<div class="topic-metadata">

**Author:** [@Stephen\_Bradshaw](https://discourse.mc-stan.org/u/Stephen_Bradshaw)\
**Replies:** 11\
**Last updated:** [April 27, 2021, 1:02pm UTC](https://discourse.mc-stan.org/t/capture-recapture-with-further-impact-on-survivability/18922 "2021-04-27T13:02:25Z")

</div>

Dear Forum, I have been using Cormack Jolly Seber (CJS) examples in the manual and online to try and estimate posteriors for survivability and prob of recapture, in addition to the influence of a trait which reducing su…

---

## [Identify response variable probability distribution: on the use of pp\_check](https://discourse.mc-stan.org/t/identify-response-variable-probability-distribution-on-the-use-of-pp-check/21918)

<div class="topic-metadata">

**Author:** [@leomarameo7](https://discourse.mc-stan.org/u/leomarameo7)\
**Replies:** 1\
**Last updated:** [April 22, 2021, 3:59pm UTC](https://discourse.mc-stan.org/t/identify-response-variable-probability-distribution-on-the-use-of-pp-check/21918 "2021-04-22T15:59:27Z")

</div>

Hello everyone! Using brms, I want to define a hierarchical model capable of relating the response variable (fish\_body\_size) and a predictor variable (seawater temperature, SST). The response variable is positive and co…

---

## [Capture-Recapture model with partial or complete pooling](https://discourse.mc-stan.org/t/capture-recapture-model-with-partial-or-complete-pooling/20393)

<div class="topic-metadata">

**Author:** [@erwald](https://discourse.mc-stan.org/u/erwald)\
**Replies:** 41\
**Last updated:** [March 9, 2021, 9:06pm UTC](https://discourse.mc-stan.org/t/capture-recapture-model-with-partial-or-complete-pooling/20393 "2021-03-09T21:06:20Z")

</div>

So what I want to analyze is the basic capture-recapture problem (as described e.g. here in the manual) but with several groups, with partial or complete pooling (I’m curious to learn how to achieve both). That is, I hav…

---

## [Avoiding label switching in a capture-recapture model](https://discourse.mc-stan.org/t/avoiding-label-switching-in-a-capture-recapture-model/21161)

<div class="topic-metadata">

**Author:** [@shira](https://discourse.mc-stan.org/u/shira)\
**Replies:** 8\
**Last updated:** [March 8, 2021, 11:52pm UTC](https://discourse.mc-stan.org/t/avoiding-label-switching-in-a-capture-recapture-model/21161 "2021-03-08T23:52:22Z")

</div>

Reviving this topic to ask a new label-switching question ! I implemented in Stan the Latent Class Model for Capture-Recapture described in this paper and implemented (without Stan) in the LCMCR package. The model inclu…

---

## [Timeseries soil modelling - Australia](https://discourse.mc-stan.org/t/timeseries-soil-modelling-australia/20366)

<div class="topic-metadata">

**Author:** [@aornugent](https://discourse.mc-stan.org/u/aornugent)\
**Replies:** 1\
**Last updated:** [February 26, 2021, 1:35am UTC](https://discourse.mc-stan.org/t/timeseries-soil-modelling-australia/20366 "2021-02-26T01:35:00Z")

</div>

Hia - I’m on the hunt for someone to conduct a relatively discrete and well specified analysis of an existing workflow using the RothC soil model. Unfortunately, this is only open to Australians. I have funding for appr…

---

## [Speeding up hurdle model with latent factors and covariates?](https://discourse.mc-stan.org/t/speeding-up-hurdle-model-with-latent-factors-and-covariates/20409)

<div class="topic-metadata">

**Author:** [@ldeschamps](https://discourse.mc-stan.org/u/ldeschamps)\
**Replies:** 5\
**Last updated:** [January 28, 2021, 2:08pm UTC](https://discourse.mc-stan.org/t/speeding-up-hurdle-model-with-latent-factors-and-covariates/20409 "2021-01-28T14:08:09Z")

</div>

Hello! I want to fit two quite big latent factor model with a lot of zero, with two response matrix having correlated factor scores (N=199xS=32 and N=199xS=28). Data are hurdle-lognormally distributed, just like this : …

---

## [fishStan v 2.0](https://discourse.mc-stan.org/t/fishstan-v-2-0/20056)

<div class="topic-metadata">

**Author:** [@Richard\_Erickson](https://discourse.mc-stan.org/u/Richard_Erickson)\
**Replies:** 0\
**Last updated:** [January 4, 2021, 10:05pm UTC](https://discourse.mc-stan.org/t/fishstan-v-2-0/20056 "2021-01-04T22:05:23Z")

</div>

I’ve release a new version of fishStan, version 2.0. The main additions to this package include additional growth models and reformatting of the code to have fewer Stan files. The package is at https://code.usgs.gov/um…

---

## [Joint Species Distribution Model Performance](https://discourse.mc-stan.org/t/joint-species-distribution-model-performance/19799)

<div class="topic-metadata">

**Author:** [@gio](https://discourse.mc-stan.org/u/gio)\
**Replies:** 3\
**Last updated:** [December 15, 2020, 2:19am UTC](https://discourse.mc-stan.org/t/joint-species-distribution-model-performance/19799 "2020-12-15T02:19:00Z")

</div>

Dear All, I am opening this discussion to share the Stan code that user @pajarom@gmail.com and I have been developing in order to realise a Joint Species Distribution Model in Stan of which we discussed performance in (R…

---

## [Hiring USGS mathematical statistician position using Stan](https://discourse.mc-stan.org/t/hiring-usgs-mathematical-statistician-position-using-stan/19810)

<div class="topic-metadata">

**Author:** [@Richard\_Erickson](https://discourse.mc-stan.org/u/Richard_Erickson)\
**Replies:** 0\
**Last updated:** [December 14, 2020, 6:24pm UTC](https://discourse.mc-stan.org/t/hiring-usgs-mathematical-statistician-position-using-stan/19810 "2020-12-14T18:24:09Z")

</div>

We are recruiting multiple mathematical statistician at UMESC. One person with be doing bat modelling with Wayne Thogmartin and the second will be working with me to model invasive carp. Wayne’s position can be based eit…

---

## [One chain not moving: sampling for complex nonlinear mixed effects model](https://discourse.mc-stan.org/t/one-chain-not-moving-sampling-for-complex-nonlinear-mixed-effects-model/17156)

<div class="topic-metadata">

**Author:** [@meghs](https://discourse.mc-stan.org/u/meghs)\
**Replies:** 14\
**Last updated:** [November 6, 2020, 2:28pm UTC](https://discourse.mc-stan.org/t/one-chain-not-moving-sampling-for-complex-nonlinear-mixed-effects-model/17156 "2020-11-06T14:28:21Z")

</div>

Short summary of the problem: Hi…I am fitting a nonlinear multilevel model to analyze survival probability of individuals (0/1 response) in relation to two continuous predictors CON and HET. We know that the relationsh…

---

## [ANOVA with varying effects](https://discourse.mc-stan.org/t/anova-with-varying-effects/18827)

<div class="topic-metadata">

**Author:** [@fsdias](https://discourse.mc-stan.org/u/fsdias)\
**Replies:** 3\
**Last updated:** [October 24, 2020, 11:34am UTC](https://discourse.mc-stan.org/t/anova-with-varying-effects/18827 "2020-10-24T11:34:09Z")

</div>

Hi, I assessed the ecological condition (EC) of rivers located inside and outside of six estates (1,…6). EC values are between 0 and 10. These estates are under three management regimes (1,2,3). I also measured EC on tw…

---

## [Practical implications of many high-Pareto K observations loo](https://discourse.mc-stan.org/t/practical-implications-of-many-high-pareto-k-observations-loo/17905)

<div class="topic-metadata">

**Author:** [@nicole.knight](https://discourse.mc-stan.org/u/nicole.knight)\
**Replies:** 4\
**Last updated:** [September 15, 2020, 8:34pm UTC](https://discourse.mc-stan.org/t/practical-implications-of-many-high-pareto-k-observations-loo/17905 "2020-09-15T20:34:38Z")

</div>

I have built a model describing how long it takes fish to digest their food (i.e., gut passage time) with temperature, diet, and a temperature-diet interaction as population effects. I included species as a group-level …

---

## [Ragged data and mixture (occupancy) model](https://discourse.mc-stan.org/t/ragged-data-and-mixture-occupancy-model/17669)

<div class="topic-metadata">

**Author:** [@jcwi](https://discourse.mc-stan.org/u/jcwi)\
**Replies:** 2\
**Last updated:** [August 26, 2020, 9:42pm UTC](https://discourse.mc-stan.org/t/ragged-data-and-mixture-occupancy-model/17669 "2020-08-26T21:42:55Z")

</div>

Hi, facing what seems like a really basic problem relating to a ragged data matrix and a row-structured likelihood, but having difficulty finding comparable examples. I think the easiest example for me to describe this i…

---

## [Improving state-space fishery population model](https://discourse.mc-stan.org/t/improving-state-space-fishery-population-model/6784)

<div class="topic-metadata">

**Author:** [@DanOvando](https://discourse.mc-stan.org/u/DanOvando)\
**Replies:** 3\
**Last updated:** [August 26, 2020, 3:07pm UTC](https://discourse.mc-stan.org/t/improving-state-space-fishery-population-model/6784 "2020-08-26T15:07:06Z")

</div>

I’m fitting about as simple of a model as there comes in population dynamics. It’s a logistic population model with observation and process error, where we have observed catches and an index of abundance from a fishery,…

---

## [Convergence problems with factor loadings in multivariante autoregressive model](https://discourse.mc-stan.org/t/convergence-problems-with-factor-loadings-in-multivariante-autoregressive-model/15240)

<div class="topic-metadata">

**Author:** [@Alfonso](https://discourse.mc-stan.org/u/Alfonso)\
**Replies:** 11\
**Last updated:** [July 31, 2020, 2:29am UTC](https://discourse.mc-stan.org/t/convergence-problems-with-factor-loadings-in-multivariante-autoregressive-model/15240 "2020-07-31T02:29:19Z")

</div>

Hi everyone, I am trying to implement a MAR/VAR model by Ovaskainen et al. 2017. I have simplified the model by assuming species only interact with individuals of their own species (i.e. no interspecific interactions). …

---

## [SBC for compositional model with multinomial observations](https://discourse.mc-stan.org/t/sbc-for-compositional-model-with-multinomial-observations/16539)

<div class="topic-metadata">

**Author:** [@Matthew\_Spencer1](https://discourse.mc-stan.org/u/Matthew_Spencer1)\
**Replies:** 2\
**Last updated:** [July 15, 2020, 5:26pm UTC](https://discourse.mc-stan.org/t/sbc-for-compositional-model-with-multinomial-observations/16539 "2020-07-15T17:26:56Z")

</div>

I’m using sbc() in rstan on a latent compositional model with multinomial observations, and am getting very U-shaped histograms for all my parameters. My real case is a factorial experiment with overdispersion and blocki…

---

## [Paper and R package for spatial models](https://discourse.mc-stan.org/t/paper-and-r-package-for-spatial-models/16336)

<div class="topic-metadata">

**Author:** [@cmcd](https://discourse.mc-stan.org/u/cmcd)\
**Replies:** 0\
**Last updated:** [July 2, 2020, 2:37am UTC](https://discourse.mc-stan.org/t/paper-and-r-package-for-spatial-models/16336 "2020-07-02T02:37:41Z")

</div>

Hi everyone, I’d like to share some work on spatial models in Stan recently published in Spatial Statistics The paper is on eigenvector spatial filter (ESF) models (known as principal coordinates of neighbor matrices (…

---

## [Suggestions for identifying summed random effects](https://discourse.mc-stan.org/t/suggestions-for-identifying-summed-random-effects/15275)

<div class="topic-metadata">

**Author:** [@Jordan-Scott-Martin](https://discourse.mc-stan.org/u/Jordan-Scott-Martin)\
**Replies:** 3\
**Last updated:** [July 1, 2020, 1:54pm UTC](https://discourse.mc-stan.org/t/suggestions-for-identifying-summed-random-effects/15275 "2020-07-01T13:54:25Z")

</div>

I am trying to estimate a repeated measures model with individual-level random intercepts and correlated random slopes partitioned into genetic effects G and environmental effects E. The genetic effects are scaled with f…

---

## [Royle and Nichols](https://discourse.mc-stan.org/t/royle-and-nichols/14150)

<div class="topic-metadata">

**Author:** [@Juan\_M\_Morales](https://discourse.mc-stan.org/u/Juan_M_Morales)\
**Replies:** 3\
**Last updated:** [May 28, 2020, 5:16pm UTC](https://discourse.mc-stan.org/t/royle-and-nichols/14150 "2020-05-28T17:16:25Z")

</div>

Dear people, I am trying to implement the Royle and Nicholson model for abundance-induced heterogeneity in detection probability. There are i = 1,2,…,M sites sampled J times and the apparent presence/absence of a speci…

---

## [The largest R-hat is NA with non-centered multivariate autoregressive model](https://discourse.mc-stan.org/t/the-largest-r-hat-is-na-with-non-centered-multivariate-autoregressive-model/14712)

<div class="topic-metadata">

**Author:** [@Alfonso](https://discourse.mc-stan.org/u/Alfonso)\
**Replies:** 10\
**Last updated:** [May 27, 2020, 11:20pm UTC](https://discourse.mc-stan.org/t/the-largest-r-hat-is-na-with-non-centered-multivariate-autoregressive-model/14712 "2020-05-27T23:20:19Z")

</div>

Hello everyone, I am fitting a multivariate autoregressive model, MAR, (also known as vector autoregressive model, VAR) to simulated data from its generative process. The model is from Ives et al. 2003. I am assuming th…

---

## [Spatial capture-recapture in Stan](https://discourse.mc-stan.org/t/spatial-capture-recapture-in-stan/14721)

<div class="topic-metadata">

**Author:** [@mbjoseph](https://discourse.mc-stan.org/u/mbjoseph)\
**Replies:** 6\
**Last updated:** [May 1, 2020, 2:21pm UTC](https://discourse.mc-stan.org/t/spatial-capture-recapture-in-stan/14721 "2020-05-01T14:21:12Z")

</div>

Hi all, I’ve translated most of the spatial capture-recapture models from the 2013 book “Spatial Capture-Recapture” by Andy Royle, Richard Chandler, Beth Gardner, and Rahel Sollmann from JAGS to Stan: https://github.com…

---

## [Marginalization for non-experts](https://discourse.mc-stan.org/t/marginalization-for-non-experts/14687)

<div class="topic-metadata">

**Author:** [@mbjoseph](https://discourse.mc-stan.org/u/mbjoseph)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 6:33am UTC](https://discourse.mc-stan.org/t/marginalization-for-non-experts/14687 "2020-04-29T06:33:33Z")

</div>

Hey all, @martinmodrak suggested I post a link to this blog post on marginalizing over discrete parameters in Stan: https://mbjoseph.github.io/posts/2020-04-28-a-step-by-step-guide-to-marginalizing-over-discrete-paramet…

[Previous page](https://discourse.mc-stan.org/tag/ecology/44.md?match_all_tags=true&page=1&tags%5B%5D=ecology)

[Next page](https://discourse.mc-stan.org/tag/ecology/44.md?match_all_tags=true&page=3&tags%5B%5D=ecology)
