# Notation for the summation in unbalanced panel data

Unbalanced panel data, where $$i$$ stands for sections and $$t$$ stands for time points, have different numbers of $$t$$ for every $$i$$ (or different numbers of $$i$$ for every $$t$$, but let me use the first framing).

Then, if I want to compute the mean of some variable (let me use $$x_{it}$$), then what is a clear but simple notation? If I tried to be meticulous, it might be like:

$$\frac{1}{n}\sum_{i=1}^{n_{i}}(\sum_{t=1}^{n_{t}(i)}x_{it})$$

where I let $$n_i$$ mean the number of sections, and $$n_t(i)$$ mean the number of time points for section $$i$$ (because it is unbalanced panel data, $$n_t$$ must be difference for different $$i$$). But this looks unusual and unnecessarily complicated to me.

One simplification might be: $$\frac{1}{n}\sum_{i,t}^{n}x_{it}$$. Or, $$\frac{1}{n}\sum_{i,t}x_{it}$$, as $$n$$ speaks only to the total number of observations. Do either or both of these simplified forms still keep the meaning clear, if it is already clarified that data are panel data (regardless of being balanced or unbalanced)?