| St@tmaster > ST113 |
Module 10
|
Examples | Exercises | SAS | R | About |
|
Prepared by The Statistics Group, KVL
- Last modified: Apr 2, 2004
Printer friendly version : [PDF] [PS] Module 10: Mixed model theory II: Tests and confidence intervals10.1 Notes10.1.1 Summary of the first theory module 10.1.2 Testing fixed effects 10.1.3 Confidence intervals of fixed effects 10.1.4 The estimate and the contrast statements 10.1.5 Test for random effects parameters 10.1.6 Confidence intervals for random effects parameters
![]()
10.1 Notes The first theory module described how a mixed model is defined and how the model parameters in a mixed model are estimated from observed data. This module describes how the tests for the fixed effects are computed (typically represented in an ANOVA table), and how to construct confidence intervals.
![]()
10.1.1 Summary of the first theory module
Recall from the first theory module that any linear normal mixed model,
can be expressed as:
![]()
10.1.2 Testing fixed effects Typically the hypothesis of interest can be expressed as some linear combination of the model parameters:
In a one way ANOVA model with three treatments the fixed effects
parameter vector would be b
=(m, a1, a2, a3)¢.
The test for similar effect of treatment 1 and treatment 2 can be
expressed as:
Not every hypothesis that can be expressed as a linear combination
of the parameters are meaningful. Consider again the one way ANOVA
example with parameters b
=(m, a1, a2, a3)¢.
The hypothesis a1=0 is not meaningful for this model. This is
not obvious right away, but consider the fixed part of the model
with arbitrary a1, and with a1=0:
Definition: A linear combination of the fixed effects model parameters L¢b is said to be estimable if and only if there is a vector l such that l¢X=L¢. In the following it is assumed that the hypothesis in question is estimable. This is not a restriction as all meaningful hypothesis are estimable.
The estimate of the linear combination of model parameters
L¢b is L¢ Ù
b is
L¢(X¢V-1X)-1L, and the mean
is Lb. This all amounts to:
A better approximation can be archived by using the Wald F-test:
![]()
10.1.3 Confidence intervals of fixed effects
Confidence intervals based on the approximative t-distribution, can
be applied for linear combinations of the fixed effects. When a single
fixed effect parameter or a single estimable linear combination of
fixed effect parameters is considered, the L matrix has only
one column, and the 95% confidence interval become:
![]()
10.1.4 The estimate and the contrast statements A linear combination of fixed effects parameters can be specified directly in SAS proc mixed. These are specified in terms of the L matrix.
Consider for instance a one way ANOVA model with five treatments and
an additional random block effect:
proc mixed; class treatment block; model y = treatment/ddfm=satterth; random block; estimate 'tmt1-tmt2' treatment 1 -1 0 0 0/cl; run;The estimate statement has three arguments. The first argument 'tmt1-tmt2' is a user defined label and is only used to recognize the estimate in the comprehensive SAS output. The second argument treatment is the name a variable (factor or covariate). The third argument specify one number for each level of the variable. These numbers specify the linear combination by multiplying each to the corresponding parameter estimate and adding it all together. The example above corresponds to:
The estimate statement can also be used to compute linear combinations of parameters from more than one variable. For instance to estimate the mean value in the first treatment group including the intercept term, the following estimate statement would do it: estimate 'Mean of tmt1' int 1 treatment 1 0 0 0 0/cl;The estimate statement can only handle the case where the resulting linear combination is a single number (L is a single column). For comparison of several treatments in one test the very similar contrast statement is needed. To test if the first three treatments have the same effect a1=a2=a3 the following statement can be used:
contrast 'tmt1=tmt2=tmt3' treatment 1 -1 0 0 0,
treatment 1 0 -1 0 0;
The contrast statement does not compute confidence
intervals and estimates of the different linear combinations,
so the estimate statement is not dispensable.
![]()
10.1.5 Test for random effects parameters The restricted/residual likelihood ratio test can be used to test the significance a random effects parameter. The likelihood ratio test is used to compare two models A and B, where B is a sub-model of A. Here the model including some variance parameter (model A), and the model without this variance parameter (model B) is to be compared. Using the test consists of two steps: 1) Compute the two negative restricted/residual log-likelihood values (lre(A) and lre(B)) by running both models. 2) Compute the test statistic:
![]()
10.1.6 Confidence intervals for random effects parameters
The confidence interval for a given variance parameter is
based on the assumption that the estimate of the variance parameter
Ù
The task is to choose the df such that the corresponding
c2-distribution matches the distribution of the
estimate. The (theoretical) variance of [(s2b)/df]c2df
is:
To get these confidence intervals computed in proc mixed, the option cl must be added to the mixed procedure, like: proc mixed cl; class treatment block; model y = treatment/ddfm=satterth; random block; run;Notice the first line.
Optimized for Microsoft Internet Explorer 6.0 for Windows webmaster |