Conte-Ecology / conteStreamTemperature

Package for cleaning and analyzing stream daily stream temperature
MIT License
1 stars 1 forks source link

Site nested within HUC #12

Closed djhocking closed 9 years ago

djhocking commented 9 years ago

Add another level to the model so that the random site effect is nested within the random HUC. There may be challenges associated with this such as:

  1. Adjusting the multivariate normal correlation structure among coefficients
  2. Changing the means parameterization
  3. Getting convergence because most HUC8 have only 1 sampling site in them
  4. Deciding whether to use HUC8 or HUC6 is somewhat arbitrary
  5. HUC units might not match the spatial autocorrelation

img_1664

djhocking commented 9 years ago

I added site nested within HUC8 to match the formulation in the jpeg above. The only difference is that their are also year effects (crossed, not nested) and the coefficients with HUC8 are drawn from a multivariate normal distribution so that they can covary and we can estimate that correlation (rho). It was done as suggested in Gelman and Hill.