www.sas.com > Service and Support > Technical Support
 
Technical Support SAS - The power to know(tm)
  TS Home | Intro to Services | News and Info | Contact TS | Site Map | FAQ | Feedback

  

/****************************************************************/
/* SAS SAMPLE LIBRARY */
/* */
/* NAME: TREGOU1 */
/* TITLE: Anova Output Data Set Example */
/* PRODUCT: STAT */
/* SYSTEM: ALL */
/* KEYS: analysis of variance, */
/* PROCS: TRANSREG */
/* DATA: */
/* */
/* REF: PROC TRANSREG, OUTPUT DATA SET EXAMPLE 1 */
/* MISC: THIS EXAMPLE HAS BEEN MODIFIED SINCE IT APPEARED */
/* IN THE RELEASE 6.06 SAS/STAT USER'S GUIDE */
/* */
/****************************************************************/

title 'ANOVA Output Data Set Example';
data refcell;
input y x1 $ x2 $;
cards;
11 a a
12 a a
10 a a
4 a b
5 a b
3 a b
5 b a
6 b a
4 b a
2 b b
3 b b
1 b b
;

*---Fit Reference Cell Two-Way ANOVA Model---;
proc transreg;
model linear(y) = class(x1 | x2);
output coefficients;
run;

*---Print the Results---;
proc print;
run;

Copyright (c) 2002 SAS Institute Inc. All Rights Reserved.
Terms of Use & Legal Information | Privacy Statement