0% found this document useful (0 votes)
5 views4 pages

Input Cards: / Example A

Uploaded by

cmyun1027
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Input Cards: / Example A

Uploaded by

cmyun1027
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

/*Example A*/

DATA POLYMER;
INPUT Exp $ PCT @@;
CARDS;
1 47 2 36 3 49 4 47 5 55
1 45 2 42 3 51 4 49 5 60
1 42 2 38 3 53 4 51 5 62
1 48 2 39 3 53 4 52 5 63
1 50 2 37 3 52 4 50 5 59
1 46 2 40 3 50 4 51 5 61
RUN;
PROC MEANS MEAN STD CLM;
CLASS EXP;
RUN;

/*Example B*/
DATA A1; INPUT GR PCT @@;
CARDS;
1 47 1 36 1 49 1 47 1 55
2 45 2 42 2 51 2 49 2 60
3 42 3 38 3 53 3 51 3 62
4 48 4 39 4 53 4 52 4 63
5 50 5 37 5 52 5 50 5 59
6 46 6 40 6 50 6 51 6 61
;
PROC MEANS MEAN STD CLM;
CLASS GR;
RUN;

/*Example 10=0.05*/
Data FEVV;
INPUT Hospital FEV @@;
CARDS;
1 3.23 1 3.47 1 1.86 1 2.47 1 3.01 1 1.69 1 2.10 1 2.81 1 3.28 1 3.36
1 2.61 1 2.91 1 1.98 1 2.57 1 2.08 1 2.47 1 2.47 1 2.88 1 2.63 1 2.53
1 2.74
2 3.22 2 2.88 2 1.71 2 2.89 2 3.77 2 3.29 2 3.39 2 3.86 2 2.64 2 2.71
2 2.71 2 3.41 2 2.87 2 2.61 2 3.39 2 3.17
3 2.79 3 3.22 3 2.25 3 2.98 3 2.47 3 2.77 3 2.95 3 3.56 3 2.88 3 2.63
3 3.38 3 3.07 3 2.81 3 3.17 3 2.23 3 2.19 3 4.06 3 1.98 3 2.81 3 2.85
3 2.43 3 3.20 3 3.53
;
PROC ANOVA;
CLASS Hospital;
MODEL FEV=Hospital;
MEANS Hospital/BON;
RUN;

/*Example 10=0.1*/
Data FEVV;
INPUT Hospital FEV @@;
CARDS;
1 3.23 1 3.47 1 1.86 1 2.47 1 3.01 1 1.69 1 2.10 1 2.81 1 3.28 1 3.36
1 2.61 1 2.91 1 1.98 1 2.57 1 2.08 1 2.47 1 2.47 1 2.88 1 2.63 1 2.53
1 2.74
2 3.22 2 2.88 2 1.71 2 2.89 2 3.77 2 3.29 2 3.39 2 3.86 2 2.64 2 2.71
2 2.71 2 3.41 2 2.87 2 2.61 2 3.39 2 3.17
3 2.79 3 3.22 3 2.25 3 2.98 3 2.47 3 2.77 3 2.95 3 3.56 3 2.88 3 2.63
3 3.38 3 3.07 3 2.81 3 3.17 3 2.23 3 2.19 3 4.06 3 1.98 3 2.81 3 2.85
3 2.43 3 3.20 3 3.53
;
PROC ANOVA;
CLASS Hospital;
MODEL FEV=Hospital;
MEANS Hospital/BON ALPHA=0.1;
RUN;

/*Practice 10-1*/
DATA POLYMER;
INPUT TEMP $ PCT @@;
CARDS;
1 47 2 36 3 49 4 47 5 55
1 45 2 42 3 51 4 49 5 60
1 42 2 38 3 53 4 51 5 62
1 48 2 39 3 53 4 52 5 63
1 50 2 37 3 52 4 50 5 59
1 46 2 40 3 50 4 51 5 61
RUN;
PROC ANOVA;
CLASS TEMP;
MODEL PCT=TEMP;
MEANS TEMP/BON;
RUN;

/*Practice 10-2*/
DATA P10_2;
INPUT SMK $ WT @@;
CARDS;
1 3.15 1 3.20 1 3.05 1 3.10 1 3.00 1 3.20
2 2.75 2 2.80 2 2.50 2 2.65 2 2.55
3 1.75 3 2.45 3 1.90 3 2.25 3 2.60
;
PROC PRINT;
PROC ANOVA;
CLASS SMK;
MODEL WT=SMK;
MEANS SMK/BON;
RUN;

/*Practice 10-3*/
DATA P10_3;
INPUT MWT $ WT @@;
CARDS;
1 2.75 1 2.80 1 2.50 1 2.65 1 2.55
2 3.10 2 2.60 2 3.10 2 2.90 2 3.00
3 3.35 3 3.40 3 3.30 3 3.00 3 3.50 3 3.20
;
PROC PRINT;
PROC ANOVA;
CLASS MWT;
MODEL WT=MWT;
MEANS MWT/BON;
RUN;
/*Practice 10-4*/
DATA P10_4;
INPUT AGE CENTER @@;
CARDS;
60 1 57 1 57 2 64 2 62 3 66 1 55 1 47 2 67 3 70 3
65 1 63 1 72 2 56 3 73 3 55 1 64 1 56 2 65 3 63 3
62 1 76 1 52 2 61 3 55 3 70 1 74 1 75 2 63 3 52 3
51 1 54 1 66 2 59 3 58 3 72 1 58 1 62 2 42 3 68 3
58 1 73 1 68 2 53 3 70 3 61 1 56 2 75 2 63 3 72 3
71 1 65 2 60 2 65 3 45 3 41 1 65 2 73 2 60 3
70 1 63 2 63 2 57 3
;
PROC ANOVA;
CLASS CENTER;
MODEL AGE=CENTER;
MEANS CENTER;
RUN;

You might also like