Skip to content
Prev 16941 / 20628 Next

MCMCglmm for unbalanced panel data

Dear list,

I am modeling number of annual registered battery electric vehicle (BEV)
and plug-in hybrid electric vehicle (PHEV) in 133 counties in US. I have
unbalanced panel data that some counties have four years of observations,
while some counties only have one or two years observations. I plan to use
the MCMCglmm package to estimate a bivariate log-normal Poisson mixed model:

   1. County is the random effect
   2. BEV and PHEV are two dependent variables
   3. X1 - X5 are independent variables.

model <- MCMCglmm(cbind(BEV, PHEV) ~ trait-1  + trait:X1 + trait:X2 +
My questions is: are the code above also appropriate for my unbalanced
dataset? Thanks in advance!

Best,