# \#panel-data

**URL:** https://discourse.mc-stan.org/tag/panel-data/134.md

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

---

## [BRMS longitudinal mediation analysis](https://discourse.mc-stan.org/t/brms-longitudinal-mediation-analysis/34077)

<div class="topic-metadata">

**Author:** [@PaigeCho](https://discourse.mc-stan.org/u/PaigeCho)\
**Replies:** 4\
**Last updated:** [February 13, 2024, 1:43am UTC](https://discourse.mc-stan.org/t/brms-longitudinal-mediation-analysis/34077 "2024-02-13T01:43:36Z")

</div>

Hi all! I am glad to have found this community to discuss tricky issues with the experts! I carefully read another post on longitudinal mediation using BRMS (Longitudinal mediation analysis), and came up with an additi…

---

## [Specification for spatial regression when working with panel data in STAN](https://discourse.mc-stan.org/t/specification-for-spatial-regression-when-working-with-panel-data-in-stan/18995)

<div class="topic-metadata">

**Author:** [@ants007](https://discourse.mc-stan.org/u/ants007)\
**Replies:** 10\
**Last updated:** [February 24, 2023, 11:28am UTC](https://discourse.mc-stan.org/t/specification-for-spatial-regression-when-working-with-panel-data-in-stan/18995 "2023-02-24T11:28:30Z")

</div>

Dear All, I am trying to fit a random-effects stochastic frontier model (basically same as a regression but with inefficiency component u) with spatial element based on the specification in the link https://rstudio-pubs…

---

## [A tail ESS warning against a local level model with an ordered logistic function](https://discourse.mc-stan.org/t/a-tail-ess-warning-against-a-local-level-model-with-an-ordered-logistic-function/27453)

<div class="topic-metadata">

**Author:** [@ytan](https://discourse.mc-stan.org/u/ytan)\
**Replies:** 4\
**Last updated:** [June 28, 2022, 11:44pm UTC](https://discourse.mc-stan.org/t/a-tail-ess-warning-against-a-local-level-model-with-an-ordered-logistic-function/27453 "2022-06-28T23:44:06Z")

</div>

Hi, I’m encountering the following tail ESS warning. Other warnings disappeared after I had tried several changes in the codes (e.g. setting weakly informative priors), but still this warning remains. Does anyone know a…

---

## [Multiple-membership multilevel models with repeated measures](https://discourse.mc-stan.org/t/multiple-membership-multilevel-models-with-repeated-measures/24788)

<div class="topic-metadata">

**Author:** [@abeccia](https://discourse.mc-stan.org/u/abeccia)\
**Replies:** 0\
**Last updated:** [October 9, 2021, 10:49pm UTC](https://discourse.mc-stan.org/t/multiple-membership-multilevel-models-with-repeated-measures/24788 "2021-10-09T22:49:15Z")

</div>

I have longitudinal data from approximately 55,000 participants, 5 observations each. These participants are nested within counties, and I am interested in looking at county-level predictors. However, approximately 20% o…

---

## [Relative contribution of time-varying regression coefficients to time-varying empirical trend?](https://discourse.mc-stan.org/t/relative-contribution-of-time-varying-regression-coefficients-to-time-varying-empirical-trend/24665)

<div class="topic-metadata">

**Author:** [@Ilan\_Strauss](https://discourse.mc-stan.org/u/Ilan_Strauss)\
**Replies:** 1\
**Last updated:** [October 28, 2021, 9:39am UTC](https://discourse.mc-stan.org/t/relative-contribution-of-time-varying-regression-coefficients-to-time-varying-empirical-trend/24665 "2021-10-28T09:39:56Z")

</div>

Hi, We are running a panel hierarchical model of firms/companies. The two groups (or ‘levels’) by which our coefficients \`vary’ are country and year. This means we have time-varying coefficients. We are trying to expla…

---

## [Implementing non-centered parameterization for multivariate autoregressive model](https://discourse.mc-stan.org/t/implementing-non-centered-parameterization-for-multivariate-autoregressive-model/23786)

<div class="topic-metadata">

**Author:** [@nomad](https://discourse.mc-stan.org/u/nomad)\
**Replies:** 5\
**Last updated:** [August 5, 2021, 11:16am UTC](https://discourse.mc-stan.org/t/implementing-non-centered-parameterization-for-multivariate-autoregressive-model/23786 "2021-08-05T11:16:30Z")

</div>

I am modeling three variables, x1, x2, and x3. Each has observations across both countries and time; they are TSCS or panel data in other words, but with ragged panels since the time-series differ in length for each coun…

---

## [Difficulties in coding autoregressive/panel model for ragged array](https://discourse.mc-stan.org/t/difficulties-in-coding-autoregressive-panel-model-for-ragged-array/22102)

<div class="topic-metadata">

**Author:** [@nomad](https://discourse.mc-stan.org/u/nomad)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 2:35pm UTC](https://discourse.mc-stan.org/t/difficulties-in-coding-autoregressive-panel-model-for-ragged-array/22102 "2021-04-30T14:35:54Z")

</div>

I am having trouble coding an autoregressive panel (or times-series, cross-sectional) model where the main variable, theta, forms a ragged array, i.e, has different length time-series for each unit. This is part of a la…

---

## [Modelling a likelihood that changes based on auxiliary variables](https://discourse.mc-stan.org/t/modelling-a-likelihood-that-changes-based-on-auxiliary-variables/20359)

<div class="topic-metadata">

**Author:** [@Balexanderstats](https://discourse.mc-stan.org/u/Balexanderstats)\
**Replies:** 2\
**Last updated:** [January 29, 2021, 8:36pm UTC](https://discourse.mc-stan.org/t/modelling-a-likelihood-that-changes-based-on-auxiliary-variables/20359 "2021-01-29T20:36:56Z")

</div>

I am working on using STAN to implement a multilevel regression model on repeated measures survey data but the catch is that there are two auxiliary variables and not everyone was measured at every time. Basically, I’m c…

---

## [How to prepare data for a multiple membership multilevel logistic model with repeated outcomes?](https://discourse.mc-stan.org/t/how-to-prepare-data-for-a-multiple-membership-multilevel-logistic-model-with-repeated-outcomes/19805)

<div class="topic-metadata">

**Author:** [@hermione](https://discourse.mc-stan.org/u/hermione)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 12:50am UTC](https://discourse.mc-stan.org/t/how-to-prepare-data-for-a-multiple-membership-multilevel-logistic-model-with-repeated-outcomes/19805 "2020-12-15T00:50:18Z")

</div>

Hello! I am trying to fit a multiple membership multilevel logistic model, in which individuals are nested within states, and move to different states over four years. I also have repeated measures of a binary outcome. I…

---

## [Referencing Previous Observation in Longitudinal Modeling](https://discourse.mc-stan.org/t/referencing-previous-observation-in-longitudinal-modeling/19594)

<div class="topic-metadata">

**Author:** [@harrelfe](https://discourse.mc-stan.org/u/harrelfe)\
**Replies:** 4\
**Last updated:** [December 2, 2020, 3:46pm UTC](https://discourse.mc-stan.org/t/referencing-previous-observation-in-longitudinal-modeling/19594 "2020-12-02T15:46:48Z")

</div>

As being discussed here I am trying to formulate a stochastic process for modeling serial correlation on the logit scale for binary and ordinal logistic models. I am trying to handle the irregular measurement time situa…

---

## [Dynamic panel model for count data](https://discourse.mc-stan.org/t/dynamic-panel-model-for-count-data/15487)

<div class="topic-metadata">

**Author:** [@polisci\_quantnerd](https://discourse.mc-stan.org/u/polisci_quantnerd)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 10:00am UTC](https://discourse.mc-stan.org/t/dynamic-panel-model-for-count-data/15487 "2020-05-31T10:00:36Z")

</div>

Hi, I’m quite new to Stan. I used to use JAGS all the time though. I have a question about how to do dynamic models on count data in a panel setting. I’m trying to run fixed effect dynamic models on panel event count da…

---

## [Panel Data Modeling in BRMS](https://discourse.mc-stan.org/t/panel-data-modeling-in-brms/14451)

<div class="topic-metadata">

**Author:** [@softx\_warey](https://discourse.mc-stan.org/u/softx_warey)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 11:52pm UTC](https://discourse.mc-stan.org/t/panel-data-modeling-in-brms/14451 "2020-05-20T23:52:12Z")

</div>

Hi I’m a completely new to using brms. Here is the structure of my data: 24 months of Sales Data at a DMA(dma) level (Designated-Marketing-Area), 24 months of TV grps raw and adstocked, Paid Search Clicks and Impressio…
