Chapter Contents |
Previous |
Next |
The MIXED Procedure |
ods output SolutionF=sf; proc mixed; class a; model y = a x / s; run; proc mixed; class a; model y = a x; repeated / local=pom(sf); run;
ods output SolutionF=sf1; proc mixed; class a; model y = a x / s; repeated / local=pom(sf); run; proc compare brief data=sf compare=sf1; var estimate; run; data sf; set sf1; run;
repeated / type=cs subject=person r=1,3,5;
Structure | Description | Parms | (i,j)th element |
ANTE(1) | Ante-Dependence | 2t-1 | |
AR(1) | Autoregressive(1) | 2 | |
ARH(1) | Heterogeneous AR(1) | t+1 | |
ARMA(1,1) | ARMA(1,1) | 3 | |
CS | Compound Symmetry | 2 | |
CSH | Heterogeneous CS | t+1 | |
FA(q) | Factor Analytic | [q/2](2t -q + 1) + t | |
FA0(q) | No Diagonal FA | [q/2](2t -q + 1) | |
FA1(q) | Equal Diagonal FA | [q/2](2t -q + 1) + 1 | |
HF | Huynh-Feldt | t+1 | |
LIN(q) | General Linear | q | |
TOEP | Toeplitz | t | |
TOEP(q) | Banded Toeplitz | q | |
TOEPH | Heterogeneous TOEP | 2t-1 | |
TOEPH(q) | Banded Hetero TOEP | t+q-1 | |
UN | Unstructured | t(t+1)/2 | |
UN(q) | Banded | [q/2](2t-q+1) | |
UNR | Unstructured Corrs | t(t+1)/2 | |
UNR(q) | Banded Correlations | [q/2](2t-q+1) | |
UN@AR(1) | Direct Product AR(1) | t1(t1+1)/2 + 1 | |
UN@CS | Direct Product CS | t1(t1+1)/2 + 1 | |
UN@UN | Direct Product UN | t1(t1+1)/2 + | |
t2(t2+1)/2 - 1 | |||
VC | Variance Components | q | and i corresponds to kth effect |
Structure | Description | Parms | (i,j)th element |
SP(EXP)(c-list) | Exponential | 2 | |
SP(EXPA)(c-list) | Anisotropic Exponential | 2c + 1 | |
SP(GAU)(c-list) | Gaussian | 2 | |
SP(LIN)(c-list) | Linear | 2 | |
SP(LINL)(c-list) | Linear log | 2 | |
SP(POW)(c-list) | Power | 2 | |
SP(POWA)(c-list) | Anisotropic Power | c+1 | |
SP(SPH)(c-list) | Spherical | 2 |
Description | Structure | Example |
Variance Components | VC (default) | |
Compound Symmetry | CS | |
Unstructured | UN | |
Banded Main Diagonal | UN(1) | |
First-Order Autoregressive | AR(1) | |
Toeplitz | TOEP | |
Toeplitz with Two Bands | TOEP(2) | |
Spatial Power | SP(POW)(c) | |
Heterogeneous AR(1) | ARH(1) | |
First-Order Autoregressive Moving-Average | ARMA(1,1) | |
Heterogeneous CS | CSH | |
First-Order Factor Analytic | FA(1) | |
Huynh-Feldt | HF | |
First-Order Ante-dependence | ANTE(1) | |
Heterogeneous Toeplitz | TOEPH | |
Unstructured Correlations | UNR | |
Direct Product AR(1) | UN@AR(1) | |
repeated / type=sp(expa)(c1 c2 c3) subject=intercept; parms (3) (4) (5) (2) (2) (2) (1) / hold=4,5,6;
proc mixed; class Var Year Child; model Y = Var Year Var*Year; repeated Var Year / type=un@ar(1) subject=Child; run;
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.