LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2009, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 10 Sep 2009 11:20:10 -0700
Reply-To:     amit <amitumrao@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         amit <amitumrao@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Help to print the output from the IML step only?
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

In the SAS steps given below I need that only the output generated in the IML steps should be printed in the output window. The output generated from the GLM step should not be printed.

DATA plantheight; Input Tree Rep Height; Cards; 1 1 144.44 2 1 113.50 3 1 60.88 4 1 163.44 1 2 145.11 2 2 118.61 3 2 90.94 1 3 104.00 2 3 118.61 3 3 80.33 1 4 105.44 2 4 123.00 3 4 92.00 4 4 153.11 ; PROC glm ; Class Rep Tree; Model Height =Rep Tree ; ods output overallanova = total_ss; ods output ModelANOVA= anova_typeIII; Run;

proc iml; use total_ss; read all var{df ss ms FValue ProbF} into x; x1=char(x[2:3,]); use anova_typeIII; read all var{df ss ms FValue ProbF} into xx; xx1=char(xx[3:4,]); anova=compress(xx1//x1); rnames={'Replication' 'Treatment' 'Error' 'Corrected Total'}; cnames={ 'DF' 'SS' 'MSS' 'F Value' 'Pr > F'}; print anova[rowname=rnames colname=cnames]; quit;

thanks and regards, amit


Back to: Top of message | Previous page | Main SAS-L page