1 / 21

Lecture 5 “additional notes on crossed random effects models”

Lecture 5 “additional notes on crossed random effects models”. Clustered versus non clustered random effects (Chap 11, new edition). We have discussed higher-level hierarchical models where units are classified by some factors (for example schools) into top level clusters at level L.

Gabriel
Download Presentation

Lecture 5 “additional notes on crossed random effects models”

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 5 “additional notes on crossed random effects models”

  2. Clustered versus non clustered random effects (Chap 11, new edition) • We have discussed higher-level hierarchical models where units are classified by some factors (for example schools) into top level clusters at level L. • The units in each top level cluster are then (sub)classified by a further factor (for example class) into clusters at level L-1. • The factors defining the classifications are nested in the same sense that a lower-level cluster can only belong to one higher level cluster (for example a class can only belong to one school)

  3. Non hierarchical models but random effects models • We now discuss non hierarchical models where units are cross-classified by two or more factors, with each unit potentially belonging to any combination of levels of the different factors

  4. Non Hierarchical Models • So far, we have treated occasions nested within individuals • However, if all individuals are affected similarly by some events or characteristics associated with the occasions, such as weather conditions, strikes, new legislation etc.. It seems reasonable to treat occasions as crossed with individuals, or to consider a “main effect” of time.

  5. Non hierarchical models • Factors are not always completely crossed. For example, the high schools and elementary schools attended by students are not clustered, but there are many combinations of high school and elementary school that do not occur in practice, perhaps because the schools are in different geographical regions.

  6. A psychological experiment with two potentially interacting factors (Gelman, sec 13.5) • Let denotes the success rate of a pilots training on a flight simulator (j=1,2,3,4,5) in airport (k=1,….,8). • These 40 data points have two groupings - treatments and airports - which are not nested

  7. Non nested random effects model Treatment random effects Airport random effects

  8. Estimates of the variance components • The variance of the success rates is huge among airports - even larger than among the individual measurements. • Whereas there is almost no differences across treatments

  9. How much do primary and secondary schools afflict attainment at age 16? • Data are cross-classified by 148 primary schools (elementary schools) and 19 secondary schools (middle/high schools) (fife.dta) • attain: attainment score at age 16 • pid: identifier for primary school (up to age 12) • sid: identifier for secondary school (from age 12) • vrq: verbal reasoning score from test taken in the last year of primary school • sex: gender (1:female; 0:male)

  10. Data characteristics • First, not every combination of primary and secondary school exists. • Second, many combinations of primary and secondary schools occur multiple times • For instance, students that attend elementary school 1 ended up in 3 secondary schools (1,9,18) • There are at most 6 secondary schools per primary schools, and for 90% of the primary schools there are at most 3 secondary schools per primary school • There are between 7 and 32 primary schools per secondary school, the median being between 13 and 14

  11. An additive crossed random effects model Attainment score at age 16 for student i who went to secondary school j and primary school k Random effects Average score Variance across secondary schools Variance across primary schools Residual variance Estimation using xtmixed

  12. Results for the additive model • The estimated standard deviation of the primary school random effect ( ) is 1.06, which is considerably larger than the estimated standard deviation of the secondary school random effect, given by 0.59 ( ) • Therefore elementary schools appear to be more variable in their effects than secondary schools. However neither of these estimates are precise • The standard deviation of the ( ) is estimated as 2.85( ). This number reflects any interactions between primary and secondary schools from the means implied by the additive effects and variability within groups of children belonging to the same combination of primary and secondary school

  13. Including a random interaction • For many combinations of primary and secondary school, we have several observations because more than one child attended that combination of schools

  14. The random interaction term • The interaction term takes on a different value for each combination of secondary and primary school to allow the assumption of additive random effects to be relaxed. • For example, some secondary schools might be more beneficial to children who attended particular elementary schools, perhaps because of similar instructional practices • We could not include interaction terms in the pilot example, because there we have only one observation for each treatment, airport combination

  15. Intraclass correlations IC among children for the same primary schools but different secondary schools IC among children for the same secondary schools but different primary schools IC among children for the same primary and secondary schools Given the secondary school, this denotes the IC correlation among children that had the same primary school

  16. Diagnostics • We can obtain the empirical Bayes estimates of both primary and secondary school random effects. If the model is correct, there EB estimates should have a normal distribution • We assess the normality of the EB estimates using a QQ plot

More Related