1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;7273 /* mvtubes.sas */7475 title 'Multivariate tests on Little Fungus Tube data';7677 data mould;78 infile '/home/u1407221/441s24/data/LittleTubes2.data.txt' firstobs=2;79 input line id mcg length10 sclr10 weight rate;80 label mcg = 'Mycelial Compatibility Group'81 length10 = 'Length of fungus in tube at day 10'82 sclr10 = 'Number of sclerotia at day 10'83 weight = 'Sclerotial weight at end of experiment'84 rate = 'Linear growth rate';85 /* Make indicator dummy variables using arrays */86 /* v1-v6 will have these values for every case. */87 v1=198; v2=205; v3=213; v4=221; v5=223; v6=225;88 array dummy{6} mcg198 mcg205 mcg213 mcg221 mcg223 mcg225;89 array value{6} v1-v6;90 do j = 1 to 6;91 if mcg = . then dummy{j} = .;92 else if mcg = value{j} then dummy{j}=1;93 else dummy{j}=0;94 end;95 /* Effect coding */96 array fungus{5} fungus1-fungus5;97 do i = 1 to 5;98 if mcg=225 then fungus{i} = -1;99 else fungus{i}=dummy{i};100 end;101 /*102 proc freq;103 title2 'Check dummy variable creation';104 tables (mcg198--mcg225 fungus1-fungus5)*mcg / norow nocol nopercent missing;105 */106NOTE: The infile '/home/u1407221/441s24/data/LittleTubes2.data.txt' is:Filename=/home/u1407221/441s24/data/LittleTubes2.data.txt,Owner Name=u1407221,Group Name=oda,Access Permission=-rw-r--r--,Last Modified=20Mar2024:14:04:08,File Size (bytes)=1775NOTE: 24 records were read from the infile '/home/u1407221/441s24/data/LittleTubes2.data.txt'.The minimum record length was 69.The maximum record length was 69.NOTE: The data set WORK.MOULD has 24 observations and 26 variables.NOTE: DATA statement used (Total process time):real time 0.00 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 816.84kOS Memory 32680.00kTimestamp 03/20/2024 06:38:27 PMStep Count 97 Switch Count 2Page Faults 0Page Reclaims 168Page Swaps 0Voluntary Context Switches 17Involuntary Context Switches 0Block Input Operations 0Block Output Operations 264107 proc means;108 title2 'Potential response variables broken down by MCG';109 class mcg;110 var length10 sclr10 weight rate;111112 /* Using just length10 and weight to limit the output */113NOTE: There were 24 observations read from the data set WORK.MOULD.NOTE: PROCEDURE MEANS used (Total process time):real time 0.08 secondsuser cpu time 0.09 secondssystem cpu time 0.01 secondsmemory 10181.29kOS Memory 40124.00kTimestamp 03/20/2024 06:38:27 PMStep Count 98 Switch Count 2Page Faults 0Page Reclaims 1881Page Swaps 0Voluntary Context Switches 15Involuntary Context Switches 0Block Input Operations 0Block Output Operations 16114 proc glm;115 title2 'Manova with proc glm';116 class mcg;117 model length10 weight = mcg;118 /* Test equality of mcgs excluding 198: a COLLECTION of contrasts */119 contrast 'AllBut198' mcg 0 1 -1 0 0 0,120 mcg 0 0 1 -1 0 0,121 mcg 0 0 0 1 -1 0,122 mcg 0 0 0 0 1 -1;123 manova H = _all_; /* Test all main effects and interactions */124 means mcg;125 /* lsmeans output is strictly univariate */126NOTE: PROCEDURE GLM used (Total process time):real time 0.64 secondsuser cpu time 0.37 secondssystem cpu time 0.04 secondsmemory 25214.51kOS Memory 54716.00kTimestamp 03/20/2024 06:38:28 PMStep Count 99 Switch Count 3Page Faults 0Page Reclaims 7110Page Swaps 0Voluntary Context Switches 2439Involuntary Context Switches 1Block Input Operations 0Block Output Operations 2528127 proc reg plots=none;128 title2 'Manova with proc reg and effect coding;';129 model length10 weight = fungus1-fungus5;130 overall: mtest fungus1=fungus2=fungus3=fungus4=fungus5=0;131NOTE: PROCEDURE REG used (Total process time):real time 0.08 secondsuser cpu time 0.09 secondssystem cpu time 0.00 secondsmemory 2439.50kOS Memory 54720.00kTimestamp 03/20/2024 06:38:28 PMStep Count 100 Switch Count 2Page Faults 0Page Reclaims 302Page Swaps 0Voluntary Context Switches 20Involuntary Context Switches 0Block Input Operations 0Block Output Operations 104132 proc reg plots=none;133 title2 'Manova with proc reg and cell means coding';134 model length10 weight = mcg198 mcg205 mcg213 mcg221 mcg223 mcg225 / noint;135 Overall: test mcg198=mcg205=mcg213=mcg221=mcg223=mcg225;136 mOverall: mtest mcg198=mcg205=mcg213=mcg221=mcg223=mcg225;137 AllBut198: test mcg205=mcg213=mcg221=mcg223=mcg225;138 mAllBut198: mtest mcg205=mcg213=mcg221=mcg223=mcg225;139 run;140 quit;NOTE: PROCEDURE REG used (Total process time):real time 0.12 secondsuser cpu time 0.12 secondssystem cpu time 0.00 secondsmemory 2569.51kOS Memory 54720.00kTimestamp 03/20/2024 06:38:28 PMStep Count 101 Switch Count 2Page Faults 0Page Reclaims 278Page Swaps 0Voluntary Context Switches 18Involuntary Context Switches 1Block Input Operations 0Block Output Operations 168141142143 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;155