<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OJS</journal-id><journal-title-group><journal-title>Open Journal of Statistics</journal-title></journal-title-group><issn pub-type="epub">2161-718X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ojs.2016.62027</article-id><article-id pub-id-type="publisher-id">OJS-65883</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Analysis of Variance in an Unbalanced Two-Way Mixed Effect Interactive Model
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>.</surname><given-names>C. Eze</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>E.</surname><given-names>U. Nwankwo</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Statistics, Nnamdi-Azikiwe University, Awka, Nigeria</addr-line></aff><pub-date pub-type="epub"><day>12</day><month>04</month><year>2016</year></pub-date><volume>06</volume><issue>02</issue><fpage>310</fpage><lpage>319</lpage><history><date date-type="received"><day>9</day>	<month>February</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>23</month>	<year>April</year>	</date><date date-type="accepted"><day>26</day>	<month>April</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  The expected mean squares for unbalanced mixed effect interactive model were derived using Brute Force Method. From the expected mean squares, there are no obvious denominators for testing for the main effects when the factors are mixed. An expression for F-test for testing for the main effects was derived which was proved to be unbiased.
 
</p></abstract><kwd-group><kwd>Mixed Model</kwd><kwd> Expected Mean Squares</kwd><kwd> Unbalanced Data</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The problem with unbalanced fixed effect interactive model is associated with the appropriate F-test for testing for the main effects when interactions are present. The paper by [<xref ref-type="bibr" rid="scirp.65883-ref1">1</xref>] worked on application of mixed-effects model for exposure assessment by re-analyzing three data sets from published surveys with repeated exposure measurements. The relative contributions of particular characteristics affecting exposure levels were assessed as in a multiple regression model, while controlling for the correlation between repeated measurements.</p><p>In [<xref ref-type="bibr" rid="scirp.65883-ref2">2</xref>] , they studied a mixed-effects nonlinear regression for unbalanced repeated measures by estimating and comparing the parameters of a generalized mixed-effects nonlinear regression model. The results are applied to in vitro data on the water transport kinetics of hemodialyzers used in the treatment of patients with chronic renal failure.</p><p>Similarly, [<xref ref-type="bibr" rid="scirp.65883-ref3">3</xref>] developed a method for deriving exact tests for variance components in some unbalanced mixed linear models. The derivation was based on a new kind of preliminary orthogonal transformation and a subsequent resampling procedure. The resulting tests are based on mutually independent sums of squares which, under null hypothesis, are distributed as scalar multiples of chi-square variates.</p><p>Also [<xref ref-type="bibr" rid="scirp.65883-ref4">4</xref>] derived exact tests for testing hypotheses concerning the variance components of the main effects in an unbalanced random two-way crossed classification with interaction model. The tests are based on four sums of squares that are distributed independently as scalar multiple chi-square variates. These sums of squares can be used to find an exact test concerning the interaction variance components.</p><p>However, [<xref ref-type="bibr" rid="scirp.65883-ref5">5</xref>] considered the Two-Way ANOVA model with unequal cell frequencies without the assumption of equal error variances. They used generalized approach to finding p-values, classical F-tests for no interaction effects and equal main effects are extended under heteroscedasticity. The generalized F-test they developed in their article can be utilized in significance testing or in fixed level testing under the Neyman-Pearson theory. The problem in their work is that, the assumption of ANOVA was violated.</p><p>Analysis of variance is straightforward when an experimental design is balanced, but unequal cell sizes affect the computation of means, hypotheses tested and F-statistics [<xref ref-type="bibr" rid="scirp.65883-ref6">6</xref>] .</p><p>Several solutions have been proposed for the analysis of unbalanced data. Solutions have focused on forcing the unbalanced data to be balanced. Suggestions include imputing cell means as additional data points into the smaller cells.</p><p>Given the model</p><disp-formula id="scirp.65883-formula194"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x6.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x7.png" xlink:type="simple"/></inline-formula>is the kth observation in ijth cell;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x8.png" xlink:type="simple"/></inline-formula>is the overall mean effects;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x9.png" xlink:type="simple"/></inline-formula>is the average effects of factor A;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x10.png" xlink:type="simple"/></inline-formula>is the average effects of factor B;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x11.png" xlink:type="simple"/></inline-formula>is the effects of the interaction between factor A and factor B;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x12.png" xlink:type="simple"/></inline-formula>is a random error components and;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x13.png" xlink:type="simple"/></inline-formula>is the number of observations per cell.</p><p>To derive the expected mean squares for Equation (1), [<xref ref-type="bibr" rid="scirp.65883-ref7">7</xref>] derived the expected mean square for factor A when factor A is fixed and factor B is random as</p><disp-formula id="scirp.65883-formula195"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x14.png"  xlink:type="simple"/></disp-formula><p>According to him, in mixed models, the expected values of the sums of squares contain functions of the fixed effects that cannot be eliminated by considering linear combinations of the sums of squares. He suggested two obvious ways of overcoming the difficulties associated with unbalanced mixed effect data. The first is to ignore the fixed effects and eliminate them from the model. What remains is a random model for which the F-test can be determined. The second possibility is to assume the fixed effects as random and therefore assume the entire model as random effect models. These suggestions are in fact unsatisfactory.</p></sec><sec id="s2"><title>2. Expected Mean Squares</title><sec id="s2_1"><title>2.1. Two-Way Unbalanced Random Effect Model</title><p>From Equation (1) above, [<xref ref-type="bibr" rid="scirp.65883-ref8">8</xref>] derived the expected mean squares for unbalanced two-way interactive random model.</p><p>They derive the expected mean squares for Equation (1) as shown in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>Where</p><disp-formula id="scirp.65883-formula196"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x15.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula197"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x16.png"  xlink:type="simple"/></disp-formula><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> ANOVA table for unbalanced two-way interactive random model</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >S.V</th><th align="center" valign="middle" >d.f</th><th align="center" valign="middle" >SS</th><th align="center" valign="middle" >MS</th><th align="center" valign="middle" >Expected mean squares</th></tr></thead><tr><td align="center" valign="middle" >Factor A</td><td align="center" valign="middle" >p − 1</td><td align="center" valign="middle" >SS<sub>A</sub></td><td align="center" valign="middle" >MS<sub>A </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x17.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Factor B</td><td align="center" valign="middle" >q − 1</td><td align="center" valign="middle" >SS<sub>B </sub></td><td align="center" valign="middle" >MS<sub>B </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x18.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >AxB</td><td align="center" valign="middle" >(p − 1)(q − 1)</td><td align="center" valign="middle" >SS<sub>λ </sub></td><td align="center" valign="middle" >MS<sub>λ</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x19.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Error</td><td align="center" valign="middle" >N − pq</td><td align="center" valign="middle" >SS<sub>e</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>e</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x20.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Total</td><td align="center" valign="middle" >N − 1</td><td align="center" valign="middle" >SS<sub>T </sub></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><disp-formula id="scirp.65883-formula198"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x21.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula199"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x22.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula200"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x23.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula201"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x24.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.65883-formula202"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x25.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula203"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x26.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula204"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x27.png"  xlink:type="simple"/></disp-formula><p>From <xref ref-type="table" rid="table1">Table 1</xref>, they found a linear combination of the mean squares with the expected mean squares and derived an expression for testing for</p><disp-formula id="scirp.65883-formula205"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x28.png"  xlink:type="simple"/></disp-formula><p>With the corresponding F-ratios as</p><disp-formula id="scirp.65883-formula206"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x29.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula207"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x30.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula208"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x31.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x32.png" xlink:type="simple"/></inline-formula> are degrees of for factor A, factor B, the interaction between factor A and factor B and error components respectively.</p><p>And</p><disp-formula id="scirp.65883-formula209"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x33.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula210"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x34.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula211"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x35.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula212"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x36.png"  xlink:type="simple"/></disp-formula><p>The sums of squares for factor A, factor B, the interaction between factor A and factor and the error terms are given by</p><disp-formula id="scirp.65883-formula213"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x37.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula214"><label>(21)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x38.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula215"><label>(22)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x39.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula216"><label>(23)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x40.png"  xlink:type="simple"/></disp-formula><p>The expression for testing for the presence of interaction from <xref ref-type="table" rid="table1">Table 1</xref> is</p><disp-formula id="scirp.65883-formula217"><label>(24)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x41.png"  xlink:type="simple"/></disp-formula></sec><sec id="s2_2"><title>2.2. Two-Way Unbalanced Mixed Effect Model</title><p>From Equation (1), if factor A is fixed and factor B is random</p><disp-formula id="scirp.65883-formula218"><label>(25)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x42.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula219"><label>(26)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x43.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.65883-formula220"><label>(27)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x44.png"  xlink:type="simple"/></disp-formula><p>Similarly, if factor A is random and factor B is fixed</p><disp-formula id="scirp.65883-formula221"><label>(28)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x45.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula222"><label>(29)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x46.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.65883-formula223"><label>(30)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x47.png"  xlink:type="simple"/></disp-formula><p>Using Brute Force Method, the expected mean squares of Equation (1) when factor A is fixed and factor B is random the expected mean square are shown in ANOVA <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>From <xref ref-type="table" rid="table2">Table 2</xref>, if we interested to test for the expression <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x48.png" xlink:type="simple"/></inline-formula> there are no obvious denominator for testing for the factor A.</p><p>However if we can obtain the expression</p><disp-formula id="scirp.65883-formula224"><label>(31)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x49.png"  xlink:type="simple"/></disp-formula><p>we would have the F-test as</p><disp-formula id="scirp.65883-formula225"><label>(32)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x50.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x51.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x52.png" xlink:type="simple"/></inline-formula> are the numerator and denominator degrees of freedom respectively</p><disp-formula id="scirp.65883-formula226"><label>(33)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x53.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula227"><label>(34)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x54.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula228"><label>(35)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x55.png"  xlink:type="simple"/></disp-formula><p>Using Welch Satterthwaite Equation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x56.png" xlink:type="simple"/></inline-formula> is the degree of freedom for the denominator and is given by</p><disp-formula id="scirp.65883-formula229"><label>(36)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x57.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x58.png" xlink:type="simple"/></inline-formula>can be shown to be</p><disp-formula id="scirp.65883-formula230"><label>(37)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x59.png"  xlink:type="simple"/></disp-formula><p>where</p><disp-formula id="scirp.65883-formula231"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x60.png"  xlink:type="simple"/></disp-formula><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> ANOVA table two way unbalanced mixed interactive model when factor A is fixed and factor B is random</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >S.V</th><th align="center" valign="middle" >d.f</th><th align="center" valign="middle" >SS</th><th align="center" valign="middle" >MS</th><th align="center" valign="middle" >Expected mean square</th></tr></thead><tr><td align="center" valign="middle" >p-classes</td><td align="center" valign="middle" >p − 1</td><td align="center" valign="middle" >SS<sub>α</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>α</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x61.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >q-classes</td><td align="center" valign="middle" >q − 1</td><td align="center" valign="middle" >SS<sub>β</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>β</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x62.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >pq-classes</td><td align="center" valign="middle" >(p − 1)(q − 1)</td><td align="center" valign="middle" >SS<sub>λ</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>λ</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x63.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Error</td><td align="center" valign="middle" >N − pq</td><td align="center" valign="middle" >SS<sub>ɛ</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>ɛ</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x64.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Total</td><td align="center" valign="middle" >N − 1</td><td align="center" valign="middle" >SS<sub>T </sub></td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td></tr></tbody></table></table-wrap><p>Statement 1: Equation (37) is an unbiased estimate of Equation (31).</p><p>Proof:</p><p>We take expectation on Equation (33) to have</p><disp-formula id="scirp.65883-formula232"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x65.png"  xlink:type="simple"/></disp-formula><p>But <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x66.png" xlink:type="simple"/></inline-formula></p><disp-formula id="scirp.65883-formula233"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x67.png"  xlink:type="simple"/></disp-formula><p>Similarly, if we are interested to test for factor B we have</p><disp-formula id="scirp.65883-formula234"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x68.png"  xlink:type="simple"/></disp-formula><p>there would be no obvious denominator to test for the above hypothesis. However, if we can obtain the expression</p><disp-formula id="scirp.65883-formula235"><label>(38)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x69.png"  xlink:type="simple"/></disp-formula><p>We would have the F-test as</p><disp-formula id="scirp.65883-formula236"><label>(39)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x70.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x71.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x72.png" xlink:type="simple"/></inline-formula> are the numerator and denominator degrees of freedom respectively.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x73.png" xlink:type="simple"/></inline-formula>is the degree of freedom for the numerator and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x74.png" xlink:type="simple"/></inline-formula> is the degree of freedom for the denominator and is given by</p><disp-formula id="scirp.65883-formula237"><label>(40)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x75.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x76.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x77.png" xlink:type="simple"/></inline-formula> are the degrees of freedom for the error components and the interactions respectively.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x78.png" xlink:type="simple"/></inline-formula>can be shown to be</p><disp-formula id="scirp.65883-formula238"><label>(41)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x79.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula239"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x80.png"  xlink:type="simple"/></disp-formula><p>Equation (41) is also an unbiased estimate of Equation (38).</p><p>Similarly, if factor A is random, and factor B is fixed, the expected mean square are shown in the ANOVA <xref ref-type="table" rid="table3">Table 3</xref>.</p><p>Where</p><disp-formula id="scirp.65883-formula240"><label>(42)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x81.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula241"><label>(43)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x82.png"  xlink:type="simple"/></disp-formula><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> ANOVA table two way unbalanced mixed interactive model when factor A is random and factor B is fixed</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >S.V</th><th align="center" valign="middle" >d.f</th><th align="center" valign="middle" >SS</th><th align="center" valign="middle" >MS</th><th align="center" valign="middle" >Expected mean square</th></tr></thead><tr><td align="center" valign="middle" >p-classes</td><td align="center" valign="middle" >p − 1</td><td align="center" valign="middle" >SS<sub>α</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>α</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x83.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >q-classes</td><td align="center" valign="middle" >q − 1</td><td align="center" valign="middle" >SS<sub>β</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>β</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x84.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >pq-classes</td><td align="center" valign="middle" >(p − 1)(q − 1)</td><td align="center" valign="middle" >SS<sub>λ</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>λ</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x85.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Error</td><td align="center" valign="middle" >N − pq</td><td align="center" valign="middle" >SS<sub>ɛ</sub><sub> </sub></td><td align="center" valign="middle" >MS<sub>ɛ</sub><sub> </sub></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x86.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Total</td><td align="center" valign="middle" >N − 1</td><td align="center" valign="middle" >SS<sub>T </sub></td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td></tr></tbody></table></table-wrap><disp-formula id="scirp.65883-formula242"><label>(44)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x87.png"  xlink:type="simple"/></disp-formula><p>When factor A is random, the hypothesis is given by</p><disp-formula id="scirp.65883-formula243"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x88.png"  xlink:type="simple"/></disp-formula><p>and there would be no obvious denominator to test for the above hypothesis. If we can obtain the expression</p><disp-formula id="scirp.65883-formula244"><label>(45)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x89.png"  xlink:type="simple"/></disp-formula><p>the F-test can be shown to be</p><disp-formula id="scirp.65883-formula245"><label>(46)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x90.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula246"><label>(47)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x91.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x92.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x93.png" xlink:type="simple"/></inline-formula> are the numerator and denominator degrees of freedom respectively.</p><disp-formula id="scirp.65883-formula247"><label>(48)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x94.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x95.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x96.png" xlink:type="simple"/></inline-formula> are the degrees of freedom for the error components and the interactions respectively.</p><p>Equation (47) is also an unbiased estimate of Equation (45).</p><p>Similarly, when factor B is fixed, the hypothesis is given by</p><disp-formula id="scirp.65883-formula248"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x97.png"  xlink:type="simple"/></disp-formula><p>with no obvious denominator to test for the hypothesis. However, if we can obtain the expression</p><disp-formula id="scirp.65883-formula249"><label>(49)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x98.png"  xlink:type="simple"/></disp-formula><p>the F-test can be shown to be</p><disp-formula id="scirp.65883-formula250"><label>(50)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x99.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula251"><label>(51)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x100.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.65883-formula252"><label>(52)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x101.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x102.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x103.png" xlink:type="simple"/></inline-formula> are the numerator and denominator degrees of freedom respectively.</p><p>Similarly Equation (51) is also an unbiased estimate of Equation (49).</p><p>Finally, the hypothesis for testing for the presence of the interaction is given by</p><disp-formula id="scirp.65883-formula253"><label>(53)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/10-1240658x104.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x105.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x106.png" xlink:type="simple"/></inline-formula> are the numerator and denominator degrees of freedom respectively.</p></sec></sec><sec id="s3"><title>3. Conclusions</title><p>Equation (2) contains the functions of the fixed effect which is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x107.png" xlink:type="simple"/></inline-formula>. If we ignore the fixed ef-</p><p>fects and eliminate them from the model, what remains is a random model for which the F-test can be determined. The second possibility is to assume the fixed effects as random and therefore assume the entire model as random effect models. This is completely unreasonable.</p><p>From <xref ref-type="table" rid="table2">Table 2</xref> and <xref ref-type="table" rid="table3">Table 3</xref>, when one factor is fixed, we equate the functions of the fixed effect to zero and obtain an expression to determine the denominator for the F-ratio when the hypothesis is specified. Similarly, when the other factor is random, we equate the functions of the random effect to zero and obtain an expression to determine the denominator for the F-ratio when the hypothesis is specified.</p><p>To test for the interaction effect for the mixed effect model, we have</p><disp-formula id="scirp.65883-formula254"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x108.png"  xlink:type="simple"/></disp-formula><p>This does not involve obtaining any expression and the degrees of freedom for both the numerator and denominator are integer valued whereas the denominator degrees of freedom for the testing for the main effects are non integer valued.</p><p>Instead of assuming both effects to be fixed or both effects to be random to enable researchers on mixed effect unbalanced interactive model analyze their data, we highly recommend our method.</p><p>This paper is limited to only an unbalanced two-way mixed effect interactive model and cannot be applied to random or fixed effect model.</p></sec><sec id="s4"><title>4. Illustrative Example</title><p>Synthetic growth hormone was administered at a clinical research center to growth hormone deficient 18 short children who had not yet reached puberty. The investigator was interested in the effects of a child’s gender (factor A) and bone development (factor B) on the rate of growth induced by hormone administration. A child’s bone development was classified into one of the three categories: severely depressed, moderately depressed and mildly depressed. Three children were randomly selected for each gender-bone development group. The response variable (Y) of interest was the difference between the growth rate during hormone treatment and the normal growth rate prior to the treatment, expressed in centimeters per month. Four of the 18 children were unable to complete the study leading to unequal treatment sample sizes shown below.</p><p>Since factor A is random and factor B is assumed to fixed, we shall make use of the information in <xref ref-type="table" rid="table4">Table 4</xref>.</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Growth hormone data</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Gender (factor A)</th><th align="center" valign="middle"  colspan="3"  >Bone development (factor B)</th><th align="center" valign="middle"  colspan="2"  ></th></tr></thead><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" >Severely depressed</td><td align="center" valign="middle" >Moderately depressed</td><td align="center" valign="middle" >Mildly depressed</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x109.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x110.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Male (A1)</td><td align="center" valign="middle" >1.4 2.4 2.2</td><td align="center" valign="middle" >2.1 1.7 <sub> </sub></td><td align="center" valign="middle" >0.7 1.1 <sub> </sub></td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >1.66</td></tr><tr><td align="center" valign="middle" >Female (A2)</td><td align="center" valign="middle" >2.4</td><td align="center" valign="middle" >2.5 1.8 2.0</td><td align="center" valign="middle" >0.5 0.9 1.3<sub> </sub></td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >1.63</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x111.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >5<sub> </sub></td><td align="center" valign="middle" >5<sub> </sub></td><td align="center" valign="middle" >14</td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x112.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >2.1</td><td align="center" valign="middle" >2.02<sub> </sub></td><td align="center" valign="middle" >0.9<sub> </sub></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/10-1240658x113.png" xlink:type="simple"/></inline-formula></td></tr></tbody></table></table-wrap><p>Source: Netal et al. (1996) Applied Linear Statistical Models [<xref ref-type="bibr" rid="scirp.65883-ref9">9</xref>] .</p><p>Our hypothesis for factor A shall be</p><disp-formula id="scirp.65883-formula255"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x114.png"  xlink:type="simple"/></disp-formula><p>Using Equations (20), (22) and (23) we have</p><disp-formula id="scirp.65883-formula256"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x115.png"  xlink:type="simple"/></disp-formula><p>Similarly, using Equations (43) and (44)</p><disp-formula id="scirp.65883-formula257"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x116.png"  xlink:type="simple"/></disp-formula><p>From Equations (47) and (48)</p><disp-formula id="scirp.65883-formula258"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x117.png"  xlink:type="simple"/></disp-formula><p>Our conclusion is that we do not reject the null hypothesis.</p><p>Similarly, our hypothesis for factor B shall be</p><disp-formula id="scirp.65883-formula259"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x118.png"  xlink:type="simple"/></disp-formula><p>Using Equation (21)</p><disp-formula id="scirp.65883-formula260"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x119.png"  xlink:type="simple"/></disp-formula><p>From Equations (51) and (52)</p><disp-formula id="scirp.65883-formula261"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x120.png"  xlink:type="simple"/></disp-formula><p>Our conclusion is that we do not reject the null hypothesis.</p><p>Finally, to test for the interaction we have</p><disp-formula id="scirp.65883-formula262"><graphic  xlink:href="http://html.scirp.org/file/10-1240658x121.png"  xlink:type="simple"/></disp-formula><p>Our conclusion is therefore that interaction is present.</p></sec><sec id="s5"><title>Cite this paper</title><p>F. C. Eze,E. U. Nwankwo, (2016) Analysis of Variance in an Unbalanced Two-Way Mixed Effect Interactive Model. Open Journal of Statistics,06,310-319. doi: 10.4236/ojs.2016.62027</p></sec></body><back><ref-list><title>References</title><ref id="scirp.65883-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Peretz, C., Goren, A., Smid, T. and Kromhout, H. (2002) Application of Mixed-Effect Models for Exposure Assessment. Annals of Occupational Hygiene, 46, 69-77. http://dx.doi.org/10.1093/annhyg/mef009</mixed-citation></ref><ref id="scirp.65883-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Edward, F.V. and Randy, L.C. (1992) Mixed-Effect Nonlinear Regression for Unbalanced Repeated Measures. Biometrics, 48, 1-17. http://dx.doi.org/10.2307/2532734</mixed-citation></ref><ref id="scirp.65883-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Ofversten, J. (1993) Exact Tests for Variance Components in Unbalanced Mixed Linear Models. Biometrics, 49, 45- 57. http://dx.doi.org/10.2307/2532601</mixed-citation></ref><ref id="scirp.65883-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Khuri, A.I. and Littell, R.C. (1987) Exact Tests for the Main Effects Variance Components in an Unbalanced Random Two-Way Model. Biometrics, 43, 545-560. http://dx.doi.org/10.2307/2531994</mixed-citation></ref><ref id="scirp.65883-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Ananda, M.M.A. and Weerahandi, S. (1997) Two-Way ANOVA with Unequal Cell Frequencies and Unequal Variances. Statistica Sinica, 7, 631-646.</mixed-citation></ref><ref id="scirp.65883-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Dawn, I. (1995) Analysis of Variance for Unbalanced Data. Marketing, Theory and Practice, 6, 337-343.</mixed-citation></ref><ref id="scirp.65883-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Searle, S.R. (1971) Topics in Variance Components Estimation. Biometrics, 27, 1-76. 
http://dx.doi.org/10.2307/2528928</mixed-citation></ref><ref id="scirp.65883-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Eze, F.C. and Chigbu, P.E. (2012) Unbalanced Two-Way Random Model with Integer-Value Degrees of Freedom. Journal of Natural Sciences Research, 2, 100-107.</mixed-citation></ref><ref id="scirp.65883-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Neter, J., Kutner, M.H. and Wasserman, W. (1996) Applied Linear Statistical Models. WCB/McGraw-Hill, 696-700.</mixed-citation></ref></ref-list></back></article>