I have `N` proportions `y_n` observed for states nested within regions over time. Each observation is indexed by state, region, and year. I want a hierarchical Gaussian-process model that decomposes variation into year effects, region effects, state effects, region-by-year Gaussian-process deviations, state-by-year Gaussian-process deviations, and residual error.

My model is:
`y_n ~ Normal(obs_mu_n, sigma_error), for n = 1, ..., N,`
`obs_mu_n = mu + year_re_{year_n} + state_re_{state_n} + region_re_{region_n} + GP_region(year_n, region_n) + GP_state(year_n, state_n).`

The random effects satisfy
`year_re_t ~ Normal(0, sigma_year),`
`region_re_r ~ Normal(0, sigma_region),`
`state_re_s ~ Normal(0, sigma_state_{region(s)}).`

The region-by-year and state-by-year latent surfaces are independent Gaussian processes over year with covariance equal to the sum of a long-range and a short-range exponentiated-quadratic kernel:
`Cov_region(t, t') = sigma_GP_region_long^2 exp(-(t-t')^2 / (2 length_GP_region_long^2)) + sigma_GP_region_short^2 exp(-(t-t')^2 / (2 length_GP_region_short^2)),`
and similarly for the state surface with parameters `sigma_GP_state_long`, `length_GP_state_long`, `sigma_GP_state_short`, and `length_GP_state_short`.

The variance components are allocated by
`tot_var ~ Gamma(3, 3),`
`prop_var ~ Dirichlet(2, ..., 2),`
and `vars = 17 * prop_var * tot_var`.

These 17 variances are assigned as follows:
`vars_1 = sigma_year^2,`
`vars_2 = sigma_region^2,`
`vars_{r+2} = sigma_state,r^2, for r = 1, ..., 10,`
`vars_13 = sigma_GP_region_long^2,`
`vars_14 = sigma_GP_state_long^2,`
`vars_15 = sigma_GP_region_short^2,`
`vars_16 = sigma_GP_state_short^2,`
`vars_17 = sigma_error^2.`

Also,
`mu ~ Normal(0.5, 0.5),`
`length_GP_region_long ~ Weibull(30, 8),`
`length_GP_state_long ~ Weibull(30, 8),`
`length_GP_region_short ~ Weibull(30, 3),`
`length_GP_state_short ~ Weibull(30, 3).`

Here:
`y_n` is the observed proportion for observation n,
`obs_mu_n` is the latent mean on the original scale,
`mu` is the global mean level,
`year_n`, `region_n`, and `state_n` identify the year, region, and state for observation n,
`state_region_ind_s` identifies the region containing state s,
`year_re_t` is the random effect for observed year t,
`region_re_r` is the random effect for region r,
`state_re_s` is the random effect for state s,
`GP_region` and `GP_state` are latent Gaussian-process deviations over time for each region and state,
`Cov_region(t, t')` is the covariance function for the region-level Gaussian process at years t and t',
`tot_var` is the total variance budget,
`prop_var` is the simplex of variance proportions allocated across the 17 components,
`vars` is the resulting vector of 17 component variances,
`sigma_year`, `sigma_region`, and `sigma_state_r` are the standard deviations of the year, region, and region-specific state effects,
`sigma_GP_region_long` and `sigma_GP_region_short` are the marginal standard deviations of the long-range and short-range region-level Gaussian-process components,
`sigma_GP_state_long` and `sigma_GP_state_short` are the marginal standard deviations of the long-range and short-range state-level Gaussian-process components,
`length_GP_region_long`, `length_GP_region_short`, `length_GP_state_long`, and `length_GP_state_short` are the corresponding Gaussian-process length scales over year,
`sigma_error` is the residual standard deviation,
`N` is the number of observations,
`N_states` is the number of states,
`N_regions` is the number of regions, which is fixed at 10 in the current Stan implementation,
`N_years` is the number of modeled years.

Parameterization notes:
In `Normal(mu, sigma)`, `sigma` is a standard deviation.
In `Gamma(alpha, beta)`, `beta` is the rate parameter, so `E[X] = alpha / beta`.
In `Dirichlet(alpha)`, `alpha` is the concentration vector.
In `Weibull(alpha, sigma)`, `alpha` is the shape parameter and `sigma` is the scale parameter.
