- An Introduction to Sphericity
- A Phylogenetic Mixture Model for the Evolution of Gene Expression
- Sequential Estimation of the Steady-State Variance
- 1-s2.0-S187704281402610X-main
- Assignment #5 ANOVA
- 2003 - Are Theraputic Relationships in Psychiatry Explained by Patients Systoms
- NCB20203 (1)
- Seanf. Lab Tafs
- Chap012 Analysis of Variance
- hw4a1
- celak
- ch11
- Statistical Variance Analysis
- What is an ANOVA
- two-way
- Mindset and Motor Learning
- Experimental Investigations to Study the Impact of Machining Parameters on Mild Steel Using Plasma Arc Cutting
- Anova
- Effectiveness of Various Materials
- Statistiek samenvatting (2).pdf
- Fernandes Et Al. 2011 GRL
- Am J Clin Nutr 1976 Stein 940 8
- One-Way ANOVA
- Next Five Hypothesis Interpretation
- Q.M. Assignment 1 updated.docx
- Hypothesis
- Statistical Design Manual
- Research Paper - NCMET 2011 (AVC)
- Anova
- Vol3-Issue1-7
- 37. Mô hình chung cho các mô hình cân bằng tổng thể.pdf
- SSRN-id1658640
- TC-NH-033-Giáo Trình Tín Dụng Ngân Hàng
- 0_2011_CVv160S2532011009
- 0_2012_CVv160S2582012052
- Ky Yeu Hoi Thao Khoa Hoc Cap Truong - Thang 4-2016
- 199703pap Judson
- Phá Giá Nội Tệ Hiệu Ứng Tuyến J Hay Tuyến S - Đinh Thị Thanh Long
- Arch
- Ttlats m Trang
- Phương Pháp Luận Đánh Giá Tác Động Methodology- CGE Assessment of the Impacts
- 0_2012_CVv160S2652012012
- ban-chuan
- Bao Cao Phat Trien Kinh Te Thi Truong Viet Nam Full to Download
- Hội Nhập Kinh Tế Và Sự Phát Triển ở VN
- Trách Nhiệm Xã Hội Của Doanh Nghiệp Fdi
- HuongDan_DinhViThuongHieu
- 2
- Hieu_phd
- Arellano Bond
- Hanh Vi Khach Hang
- 02 ChatluongtangtruongkteVN Tran Tho Dat
- Ky Yeu Hoi Thao Kinh Te Viet Nam - Nhung Van de Dat Ra Trung Va Dai Han
- Van Thien Hoang An
- Bai Giang Dinh Luong
- Xquan Tri Chat Luong Dich Vu_ Le Chi Cong
- CÁCH TRÌNH BÀY MỘT BÀI BÁO KHOA HỌC KINH TẾ
- 02-Dr. Tran Tho Dat
- 2

**Fixed vs. Random Effects
**

Jonathan Taylor

- p. 1/19

2/19 . ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s s s Random effects.p. Two-way mixed & random effects ANOVA. 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure . Sattherwaite’s procedure.Today’s class q Today’s class q Two-way ANOVA q Random vs. One-way random effects ANOVA.

j )-“cell”: Yijk = µ + αi + βj + (αβ )ij + εijk . 1 ≤ j ≤ m. m groups ins second and nij samples in (i. 1 ≤ j ≤ m. 1 ≤ i ≤ r. 1 ≤ i ≤ r r x i=1 (αβ )ij = 0. 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure s Constraints: r x i=1 αi = 0 m x j =1 βj = 0 m x j =1 (αβ )ij = 0. 3/19 . ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s Second generalization: more than one grouping variable. σ 2 ). . εijk ∼ N (0. Two-way ANOVA model: observations: (Yijk ).p. 1 ≤ k ≤ nij : r groups in ﬁrst grouping variable.Two-way ANOVA q Today’s class q Two-way ANOVA q Random vs.

In this case. ﬁxed effects q Today’s class q Two-way ANOVA q Random vs. etc. where more than one (identical) measurement is taken on the same individual. the “group” effect αi is best thought of as random because we only sample a subset of the entire population of subjects. long duration. Simplest example: repeated measures.Random vs. In some designs.p. 4/19 . . the categorical variable is “subject”. the categorical variables are well-deﬁned categories: below average ﬁtness. ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s s 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure s In ANOVA examples we have seen so far.

Example: if surveying students on different campuses. q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure . “campus” may be a random effect. ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s s 2 σµ A “group” effect is random if we can think of the levels we observe in that group to be samples from a larger population. “center” might be thought of as random.p. 5/19 .When to use random effects? q Today’s class q Two-way ANOVA q Random vs. Example: if collecting data from different medical centers.

Questions of interest: what is the “grand mean” sodium content? How much variability is there from brand to brand? “Individuals” in this case are brands.Example: sodium content in beer q Today’s class q Two-way ANOVA q Random vs. 6/19 .p. repeated measures are the 8 bottles. researchers recorded the sodium content of 8 12 ounce bottles. ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s s 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure s How much sodium is there in North American beer? How much does this vary by brand? Observations: for 6 brands of beer. .

σµ . Alternatively. 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure s We might be interested in the population mean.One-way random effects model q Today’s class q Two-way ANOVA q Random vs. is it zero? subjects. 1 ≤ i ≤ r. µ· : CIs. 1 ≤ j ≤ n εij ∼ N (0. Yij ∼ µ· + αi + εij . σµ ). is it zero? etc.p. 1 ≤ j ≤ n 2 αi ∼ N (0. σ 2 ). 7/19 . we might be interested in the variability across 2 : CIs. 1 ≤ i ≤ r. ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s s s s Suppose we take n identical measurements from r subjects. 1 ≤ i ≤ r.

the observations are no longer independent (even if ε’s are independent). 8/19 .Implications for model q Today’s class q Two-way ANOVA q Random vs. the only parameter to estimate is σ 2 because the covariance matrix is σ 2 I . Yi j ) = σµ s 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure s In more complicated mixed effects models.i + σ 2 δj. In fact 2 δi. In ordinary least squares regression.j . .p. Cov(Yij . but in the covariance as well. this makes MLE more complicated: not only are there parameters in the mean. ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s In random effects model.

9/19 . ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating Source Treatments Error s s 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure s Only change here is the expectation of SST R which reﬂects randomness of αi ’s.One-way random ANOVA table q Today’s class q Two-way ANOVA q Random vs. it is easy to see that M ST R ∼ Fr−1.(n−1)r . 2 Under H0 : σµ = 0. M SE SS ”2 “ Pr n SST R = Y Y − ·· i· i=1 Pr Pn 2 SSE = i=1 j =1 (Yij − Y i· ) d f r−1 (n − 1)r E (M S ) 2 σ 2 + nσµ σ2 . ANOVA table is still useful to setup tests: the same F statistics for ﬁxed or random will work here.p.

10/19 . Var(Y ·· ) = rn s Therefore.p. µr ). . . . ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s We know that E (Y ·· ) = µ· . and can show that 2 nσµ + σ2 . so that Y i· → µi . .Inference for µ· q Today’s class q Two-way ANOVA q Random vs. Y ·· − µ· SST R (r −1)rn 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure ∼ tr−1 s s s Why r − 1 degrees of freedom? Imagine we could record an inﬁnite number of observations for each individual. To learn anything about µ· we still only have r observations (µ1 . . Sampling more within an individual cannot narrow the CI for µ· .

ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating σ 2 µ s From the ANOVA table 2 σµ E (SST R/(r − 1)) − E (SSE/((n − 1)r)) .p.2 Estimating σµ q Today’s class q Two-way ANOVA q Random vs. = n SST R/(r − 1) − SSE/((n − 1)r) = n s Natural estimate: 2 Sµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure s Problem: this estimate can be negative! One of the difﬁculties in random effects model. . 11/19 .

Company wants to get an idea of daily productivity.Example: productivity study q Today’s class q Two-way ANOVA q Random vs.p. and how it depends on which machine an employee uses. As these employees are not all employees. having each employee work on each machine for a total of n days. and these machines are not all machines it makes sense to think of both the effects of machine and employees (and interactions) as random. Study: take m employees and r machines. ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s s 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure s Imagine a study on the productivity of employees in a large manufacturing company. . 12/19 .

ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s s s s s Yijk ∼ µ·· + αi + βj + (αβ )ij + εij . σα ). 2 βj ∼ N (0. 2 (αβ )ij ∼ N (0. 1 ≤ j ≤ m. 1 ≤ i ≤ r. σβ ).Two-way random effects model q Today’s class q Two-way ANOVA q Random vs. 1 ≤ i ≤ r. 1 ≤ k ≤ n 2 αi ∼ N (0. σ 2 ). 1 ≤ i ≤ r. 13/19 . . 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure Cov(Yijk . 1 ≤ j ≤ m. 1 ≤ k≤n εijk ∼ N (0. Yi j k 2 2 2 ) = δii σα + δjj σβ + δii δjj σαβ + δii δjj δkk σ 2 . 1 ≤ i ≤ r. 1 ≤ j ≤ m.p. σαβ ). 1 ≤ j ≤ m.

p. 2 To test H0 : σαβ = 0 use SSAB and SSE . q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure . ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating SS ”2 “ P SSA = nm r Y − Y ··· i·· i=1 ”2 Pm “ SSB = nr j =1 Y ·j · − Y ··· ”2 P Pm “ Y Y − Y + Y − SSAB = n r ··· i·· ·j · ij · i=1 j =1 Pm Pn Pr 2 SSE = j =1 i=1 k=1 (Yijk − Y ij · ) d f r−1 m−1 (m − 1)(r − 1) (n − 1)ab E (SS ) 2 + nσ 2 σ 2 + nmσα αβ 2 2 2 σ + nrσβ + nσαβ 2 σ 2 + nσαβ σ2 s s 2 σµ 2 To test H0 : σα = 0 use SSA and SSAB . 14/19 .ANOVA tables: Two-way (random) q Today’s class q Two-way ANOVA q Random vs.

Mixed effects model q Today’s class q Two-way ANOVA q Random vs. For instance. Then. . we might think of a model in which we have a ﬁxed effect for “brewing technique” and a random effect for beer.p. some factors can be thought of as ﬁxed. 15/19 . we might have a study of the effect of a standard part of the brewing process on sodium levels in the beer example. ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating σ 2 µ s s s q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure In some studies. others random.

1 ≤ i ≤ r. 16/19 . σα ). 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure Constraints: m x j =1 βj = 0 r x i=1 (αβ )ij = 0. σ 2 ). βj . 1 ≤ j ≤ m. Yi j δjj 2 σβ + δii k s )= 1 2 − (1 − δii ) m σαβ + δii δkk σ 2 m−1 2 m σαβ . 1 ≤ i ≤ r.p. 1 ≤ i ≤ r. 2 (αβ )ij ∼ N (0. ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s s s s s s Yijk ∼ µ·· + αi + βj + (αβ )ij + εij . x Cov ((αβ )ij . 1 ≤ j ≤ m are constants. 1 ≤ i ≤ r. 1 ≤ j ≤ m. 1 ≤ k≤n εijk ∼ N (0. 1 ≤ k ≤ n 2 αi ∼ N (0. 1 ≤ i ≤ r. (αβ )i j ) = −σ 2 /m αβ Cov(Yijk . 1 ≤ j ≤ m. (m − 1)σαβ /m).Two-way mixed effects model q Today’s class q Two-way ANOVA q Random vs.

. 17/19 . ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating SS SSA SSB SSAB Pm Pn Pr 2 SSE = j =1 i=1 k=1 (Yijk − Y ij · ) d f r−1 m−1 (m − 1)(r − 1) (n − 1)ab E (M S ) 2 σ 2 + nmσα Pm 2 j =1 βi 2 + nσαβ σ 2 + nr m−1 2 σ 2 + nσαβ σ2 s s s 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure 2 To test H0 : σα = 0 use SSA and SSE .ANOVA tables: Two-way (mixed) q Today’s class q Two-way ANOVA q Random vs. 2 To test H0 : σαβ use SSAB and SSE . To test H0 : β1 = · · · = βm = 0 use SSB and SSAB .p.

ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s 2 Consider estimating σβ in the two-way random effects ANOVA. 2 To form a conﬁdence interval for σ β we need to know distribution of a linear combination of M S · s. at least approximately.p. 18/19 . .Conﬁdence intervals for variances q Today’s class q Two-way ANOVA q Random vs. A natural estimate is 2 = nr(M SB − M SAB ). σβ s s s 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure What about CI? A linear combination of χ2 – but not χ2 .

2 k 2 2 i=1 ci M Si /dfi where dfi are the degrees of freedom of the i-th M S .α/2 .p.1−α/2 dfT × L LU = 2 χdfT . 19/19 . ﬁxed effects q When to use random effects? q Example: sodium content in beer q One-way random effects model q Implications for model q One-way random ANOVA table q Inference for µ· q Estimating s Given k independent M S ·’s k L∼ i=1 s ci M S i Then dfT L E(L) where dfT = k i=1 ci M Si 2 σµ q Example: productivity study q Two-way random effects model q ANOVA tables: Two-way (random) q Mixed effects model q Two-way mixed effects model q ANOVA tables: Two-way (mixed) q Conﬁdence intervals for variances q Sattherwaite’s procedure “ ∼ χ2 dfT . LL = 2 χdfT . s (1 − α) · 100% CI for E(L): dfT × L .Sattherwaite’s procedure q Today’s class q Two-way ANOVA q Random vs.

- An Introduction to SphericityUploaded byHarry SW
- A Phylogenetic Mixture Model for the Evolution of Gene ExpressionUploaded byHernán Ferrer Pereira
- Sequential Estimation of the Steady-State VarianceUploaded byJose Alirio
- 1-s2.0-S187704281402610X-mainUploaded byDeky Rahmadani
- Assignment #5 ANOVAUploaded byChouaib El Hajjaji
- 2003 - Are Theraputic Relationships in Psychiatry Explained by Patients SystomsUploaded byapi-3805453
- NCB20203 (1)Uploaded bysyafiqah umran
- Seanf. Lab TafsUploaded byWladimir Rondan
- Chap012 Analysis of VarianceUploaded byjohn brown
- hw4a1Uploaded bydraconnox
- celakUploaded byyoga karang
- ch11Uploaded bycooldude690
- Statistical Variance AnalysisUploaded byTew Baquial
- What is an ANOVAUploaded byasndmp
- two-wayUploaded byShairmaine Dianne Valencia
- Mindset and Motor LearningUploaded byWagner Souza
- Experimental Investigations to Study the Impact of Machining Parameters on Mild Steel Using Plasma Arc CuttingUploaded byAnonymous 7VPPkWS8O
- AnovaUploaded byAmit Kl
- Effectiveness of Various MaterialsUploaded byjuli58
- Statistiek samenvatting (2).pdfUploaded byClinton Craig
- Fernandes Et Al. 2011 GRLUploaded bytaucci123
- Am J Clin Nutr 1976 Stein 940 8Uploaded byMohamad Lutvi Amin
- One-Way ANOVAUploaded bycyn050608
- Next Five Hypothesis InterpretationUploaded byAkshay Agarwal
- Q.M. Assignment 1 updated.docxUploaded byyoursonly123
- HypothesisUploaded byHarish SN
- Statistical Design ManualUploaded byyamilacontreras
- Research Paper - NCMET 2011 (AVC)Uploaded byIshan Parekh
- AnovaUploaded byRajesh Dwivedi
- Vol3-Issue1-7Uploaded byrindangsukmanita

- 37. Mô hình chung cho các mô hình cân bằng tổng thể.pdfUploaded byVu Thi Duong Ba
- SSRN-id1658640Uploaded byVu Thi Duong Ba
- TC-NH-033-Giáo Trình Tín Dụng Ngân HàngUploaded byVu Thi Duong Ba
- 0_2011_CVv160S2532011009Uploaded byVu Thi Duong Ba
- 0_2012_CVv160S2582012052Uploaded byVu Thi Duong Ba
- Ky Yeu Hoi Thao Khoa Hoc Cap Truong - Thang 4-2016Uploaded byVu Thi Duong Ba
- 199703pap JudsonUploaded byVu Thi Duong Ba
- Phá Giá Nội Tệ Hiệu Ứng Tuyến J Hay Tuyến S - Đinh Thị Thanh LongUploaded byVu Thi Duong Ba
- ArchUploaded byVu Thi Duong Ba
- Ttlats m TrangUploaded byVu Thi Duong Ba
- Phương Pháp Luận Đánh Giá Tác Động Methodology- CGE Assessment of the ImpactsUploaded byVu Thi Duong Ba
- 0_2012_CVv160S2652012012Uploaded byVu Thi Duong Ba
- ban-chuanUploaded byVu Thi Duong Ba
- Bao Cao Phat Trien Kinh Te Thi Truong Viet Nam Full to DownloadUploaded byVu Thi Duong Ba
- Hội Nhập Kinh Tế Và Sự Phát Triển ở VNUploaded byVu Thi Duong Ba
- Trách Nhiệm Xã Hội Của Doanh Nghiệp FdiUploaded byVu Thi Duong Ba
- HuongDan_DinhViThuongHieuUploaded byVu Thi Duong Ba
- 2Uploaded byVu Thi Duong Ba
- Hieu_phdUploaded byVu Thi Duong Ba
- Arellano BondUploaded byVu Thi Duong Ba
- Hanh Vi Khach HangUploaded byVu Thi Duong Ba
- 02 ChatluongtangtruongkteVN Tran Tho DatUploaded byVu Thi Duong Ba
- Ky Yeu Hoi Thao Kinh Te Viet Nam - Nhung Van de Dat Ra Trung Va Dai HanUploaded byVu Thi Duong Ba
- Van Thien Hoang AnUploaded byVu Thi Duong Ba
- Bai Giang Dinh LuongUploaded byVu Thi Duong Ba
- Xquan Tri Chat Luong Dich Vu_ Le Chi CongUploaded byVu Thi Duong Ba
- CÁCH TRÌNH BÀY MỘT BÀI BÁO KHOA HỌC KINH TẾUploaded byVu Thi Duong Ba
- 02-Dr. Tran Tho DatUploaded byVu Thi Duong Ba
- 2Uploaded byVu Thi Duong Ba