On page 378 of Raudenbush & Bryk's (2002) book, they recognize 3 possible types of correlations among two observations given two (fully or partially) crossed random effects (i.e., neighborhood & school):
(1) two observations coming from the same school and same neighborhood.
(2) two observations coming from same neighborhood but different schools.
(3) two observations coming from same school but different neighborhoods.
Question: I wonder how to justify which of the 3 types of correlations among two observations are possible in the following toy, neighborhood-school dataset given its structure (below the data)?
m = "
neighbor school
1 2
1 2
2 1
2 1
2 1
3 2
3 2
4 1
"
### DATA STRUCTURE in `R` code:
dat <- read.table(text=m,h=T)
xtabs(~neighbor+school,data = dat)
school
neighbor 1 2
1 0 2
2 3 0
3 0 2
4 1 0
xtab()
output) that there are rows that belong to the (1) same school and same neighborhood, (2) same neighborhood but different schools, and (3) same school but different neighborhoods. It seems to me that fitting such a data structure and encoding crossing in data structure enables accounting for these 3 possible correlations, if not why? $\endgroup$