Agriculture Reference
In-Depth Information
Appendix
This is an explanation of a manual method to calculate the adjusted
treatment mean square and effective error mean square with the bal-
anced lattice design of Chapter 5. These calculations have been put
together in a do-file called ballatadj.do.
The saved scalars from the ANOVA (analysis of variance) estima-
tion command can be used to calculate the necessary adjustment term
μ. This is calculated as
(
)
Blockadj.MS-Intrablock errorMS
Bloc
µ=
(
)
k 2
kkadj.MS
Substituting in this equation results in the following calculation:
758 789167 322 9625
16 758 789167
.
-
.
0 0358982
.
=
.
The following equation entered in the Stata command window will
calculate this adjustment:
localu = (( e(ss_3) / e(df_3) ) - ( e(rmse) ^2))/
( (e(df_1) ^2) * ( e(ss_3) / e(df_3) ))
231
Search WWH ::




Custom Search