<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101675#M5345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a first try.&amp;nbsp; I don't think you will need the TEST statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveyreg data=data1 total=&amp;lt;don't know what to put here, but it is the total number of PSUs that you sampled from, could be in a dataset&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; strata stratum1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; class months;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; model X2 = months;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lsmeans months / diff;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmestimate months "0 v 1" -1 1 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '0 v 2'&amp;nbsp; -1 0 1/adjust= &amp;lt;pick your method for adjustment here&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmestimate monts 'Linear trend' -1 0 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; weight weight1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives the multiple comparison in the first LSMESTIMATE statement, and the linear trend in the second.&amp;nbsp; I set the total PSU to 640 for my analysis, and used adjust=simulate.&amp;nbsp; (Oh and I had to modify the data.&amp;nbsp; In the fifth record from the bottom, there is a missing value, and I had no idea whether it was for X1 or stratum.&amp;nbsp; I inserted a 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="width: 100%; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 5&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 6&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 7&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 8&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Effect&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Label&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Estimate&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Standard Error&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DF&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;tValue&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pr &amp;gt; t&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Adj P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;months&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0 v 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-0.3734&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.9941&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;64&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-0.19&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.8521&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.9760&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;months&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0 v 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-1.5843&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2.3346&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;64&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-0.68&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.4998&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.7297&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjustment for multiplicity&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Surveyreg: Least Squares Means Estimates; Adjustment for Multiplicity: Simulated"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="IDX27"&gt;&lt;/A&gt;&amp;nbsp; Linear trend (copied without headers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Surveyreg: Least Squares Means Estimate"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;months&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;Linear trend&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-1.5843&lt;/TD&gt;&lt;TD class="r data"&gt;2.3346&lt;/TD&gt;&lt;TD class="r data"&gt;64&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.68&lt;/TD&gt;&lt;TD class="r data"&gt;0.4998&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jun 2013 17:41:18 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2013-06-11T17:41:18Z</dc:date>
    <item>
      <title>Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101670#M5340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Dear All:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I do need helps with how to use both PROC surveyfreq&lt;SPAN style="font-size: 14pt;"&gt; a&lt;SPAN style="font-size: 14pt;"&gt;n&lt;SPAN style="font-size: 14pt;"&gt;d PROC surveymeans to do the following analysis. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I really thank you all for your helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I have the following variables:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Stratum1 (1,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Months (0,1,2) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 14pt;"&gt;X1 (1=yes,2=No) ---- nominal categorical&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;X2&amp;nbsp; ------ interval continuous&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Weight1&amp;nbsp; ---- weight variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I need&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;(1) to test the equality of proportions of ones in months (0,1,2), and conduct a multiple comparison test for these proportions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 14pt;"&gt;(2) to test the equality of the averages in months(0,1,2) and conduct a multiple comparison test for these means.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;(3) test for trend: for example if there is increasing or decreasing in averages (X2), if there is increasing or decreasing in proportions of ones (X1).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Any helps will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Please email me copy of your answer.&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;With many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Email: &lt;A href="mailto:sstoline@gmail.com" target="_blank"&gt;sstoline@gmail.com&lt;/A&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data1--- as an example&lt;/P&gt;&lt;P&gt;=============================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X2&amp;nbsp;&amp;nbsp;&amp;nbsp; X1&amp;nbsp;&amp;nbsp;&amp;nbsp; stratum1&amp;nbsp;&amp;nbsp;&amp;nbsp; months&amp;nbsp;&amp;nbsp;&amp;nbsp; weight1&lt;/P&gt;&lt;P&gt;29.4822&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;33.2849&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;16.9370&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;19.0055&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;21.1151&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt; 25.4055&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;24.4164&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;19.0767&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;23.1562&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;23.3479&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;21.7370&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;24.9726&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;20.3836&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;20.0575&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;17.6603&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;25.2274&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt; 20.9644&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;32.8055&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;39.5233&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;17.7288&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;18.3096&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;25.8055&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;30.0904&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;27.8082&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;37.3863&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;26.2548&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;17.8795&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;19.8000&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;28.6932&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;27.1041&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;36.1836&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;19.8192&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;31.9644&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt; 27.0740&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;23.5288&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;21.9068&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;20.3534&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;29.4767&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;22.8274&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;21.2685&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;31.8932&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;31.8795&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;21.2630&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;18.7562&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;16.8822&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;22.0164&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;27.4959&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;27.4904&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;2.7096&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;23.0027&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;19.2767&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;30.4466&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;36.5425&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;32.2521&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;36.9534&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;30.4164&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt; 20.2767&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;17.2356&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;20.8247&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;20.8795&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;27.5260&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;19.2493&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;17.8521&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;19.6822&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;36.8356&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.5616716&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 14:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101670#M5340</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2013-06-10T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101671#M5341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, rather than SURVEYMEANS, I would check out SURVEYREG.&amp;nbsp; The use of CLASS statments and TEST and LSMESTIMATE statements should go a long way toward giving the answers you are working towards in #2 and #3.&amp;nbsp; For #1, I assume that X1 would be the dependent variable.&amp;nbsp; The SURVEYFREQ documentation, especially Example 90.1 should give you the code you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 14:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101671#M5341</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-10T14:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101672#M5342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I really thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clarification:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure when you said "For #1, I assume that X1 would be the dependent variable". If so, the table statement should look like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table X1*months/ row nowt wchisq;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table months*X1/ row nowt wchisq;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 07:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101672#M5342</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2013-06-11T07:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101673#M5343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would go with the latter.&amp;nbsp; The example (90.1) puts the response as the last variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 11:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101673#M5343</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-11T11:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101674#M5344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use both TEST and LSMESTIMATE statements but I could not make them work. I could not find an example for TEST statement, and I could not make LSMESTIMATE statement. I am wondering if you can help me with a simple code using the above sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;P&gt;steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101674#M5344</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2013-06-11T17:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101675#M5345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a first try.&amp;nbsp; I don't think you will need the TEST statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveyreg data=data1 total=&amp;lt;don't know what to put here, but it is the total number of PSUs that you sampled from, could be in a dataset&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; strata stratum1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; class months;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; model X2 = months;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lsmeans months / diff;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmestimate months "0 v 1" -1 1 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '0 v 2'&amp;nbsp; -1 0 1/adjust= &amp;lt;pick your method for adjustment here&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmestimate monts 'Linear trend' -1 0 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; weight weight1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives the multiple comparison in the first LSMESTIMATE statement, and the linear trend in the second.&amp;nbsp; I set the total PSU to 640 for my analysis, and used adjust=simulate.&amp;nbsp; (Oh and I had to modify the data.&amp;nbsp; In the fifth record from the bottom, there is a missing value, and I had no idea whether it was for X1 or stratum.&amp;nbsp; I inserted a 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="width: 100%; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 5&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 6&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 7&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 8&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Effect&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Label&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Estimate&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Standard Error&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DF&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;tValue&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pr &amp;gt; t&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Adj P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;months&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0 v 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-0.3734&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.9941&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;64&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-0.19&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.8521&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.9760&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;months&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0 v 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-1.5843&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2.3346&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;64&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-0.68&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.4998&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.7297&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjustment for multiplicity&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Surveyreg: Least Squares Means Estimates; Adjustment for Multiplicity: Simulated"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="IDX27"&gt;&lt;/A&gt;&amp;nbsp; Linear trend (copied without headers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Surveyreg: Least Squares Means Estimate"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;months&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;Linear trend&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-1.5843&lt;/TD&gt;&lt;TD class="r data"&gt;2.3346&lt;/TD&gt;&lt;TD class="r data"&gt;64&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.68&lt;/TD&gt;&lt;TD class="r data"&gt;0.4998&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101675#M5345</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-11T17:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101676#M5346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. It helped me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few more things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- Is there is a way to plot the confidence intervals for means with "PROC surveymeans". If so, I need help with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveymeans data = data1;&lt;BR /&gt;strata stratum1; &lt;BR /&gt;weight weight1;&lt;BR /&gt;domain months;&lt;BR /&gt;var x2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- Same thing with "PROC surveyfreq", is there is a way to plot the confidence Intervals for proportions. Here, also how to get CIs for proportion in the SAS output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveyfreq data = data1;&lt;/P&gt;&lt;P&gt;strata stratum1; &lt;/P&gt;&lt;P&gt;weight weight1;&lt;/P&gt;&lt;P&gt;table months*x1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error Line Chart: Temperature Plotting" class="jiveImage" src="http://www.fusioncharts.com/images/gallery-icons/powercharts/error-line-2.gif" title="Error Line Chart: Temperature Plotting" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once again, I really thank you very much for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 11:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101676#M5346</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2013-06-13T11:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101677#M5347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SURVEYFREQ, check the PLOTS= option in the TABLES statement.&amp;nbsp; To get CI's reported/calculated, add the /CL option to the TABLES statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SURVEYMEANS, I would add the PERCENTILES = or&amp;nbsp; QUANTILES = options in the PROC statement.&amp;nbsp; Unfortunately, SURVEYMEANS doesn't have an obvious PLOTS= option that I could find anywhere.&amp;nbsp; You would probably have to use an ODS OUTPUT statement to export the statistics and quantile datasets, then manipulate them some, and finally use PROC SGPLOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use SURVEYREG and do a domain analysis, or a main effects model and use the CL and PLOTS= options in the LSMEANS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 17:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101677#M5347</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-13T17:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101678#M5348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get the graph of confidence intervals for the means for 11 months in the PROC SURVEYREG. it looks greats, many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3693" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3693_pastedImage_0.png" style="width: 601px; height: 399px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However, I could not got the graph confidence intervals for the percent in the PROC SURVEYFREQ. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to get the plot of the graph of confidence intervals of percent of ones in the X1 variables in each months. That is there will be three confidence intervals: CI for percent of ones in X1 in month 0, CI for percent of ones in X1 in month 1, and CI for percent of ones in X1 in month 2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am still need help with this part.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also, if I have 11 month, how to set the test for trend, I could not make it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for bothering&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 13:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101678#M5348</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2013-06-14T13:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101679#M5349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's do the last first.&amp;nbsp; For 11 months, a linear trend in the means would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LSMESTIMATE months 'Linear trend' -5 -4 -3 -2 -1 0 1 2 3 4 5/cl;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the plots in SURVEYFREQ, make sure ODS GRAPHICS ON; precedes the call:&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc surveyfreq data = data1;&lt;/P&gt;&lt;P&gt;strata stratum1; &lt;/P&gt;&lt;P&gt;weight weight1;&lt;/P&gt;&lt;P&gt;table months*x1/clwt plots(only)=wtfreqplot(scale=percent type=dotplot orient=vertical);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drawing lines to connect looks like it will require major editing of the plots.&amp;nbsp; You may want to ask in the Graphics forum for help on that, if it is really needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101679#M5349</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-14T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101680#M5350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will be the last thing in this issue (hope so). I tried to use the code you showed me above and I tried my best to play with the plot (option), but it gives me the following graph&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3701" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3701_pastedImage_0.png" style="width: 636px; height: 468px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Is there is away to just get the graph of the percents of ones in X1 for the three months (0,1,2) in one graph just like the one obtained from PROC SURVEYREG for means shown in my previous post. Also, I could not see what (only) in the plot option added to the plot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;By the way, is it possible to conduct a TREND test in PROC SURVEYFREQ? if so, please let me know how to do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once again many thanks&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This what I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data data1;&lt;/P&gt;&lt;P&gt;input X2&amp;nbsp;&amp;nbsp;&amp;nbsp; X1&amp;nbsp;&amp;nbsp;&amp;nbsp; stratum1&amp;nbsp;&amp;nbsp;&amp;nbsp; months&amp;nbsp;&amp;nbsp;&amp;nbsp; weight1;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;29.4822&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;33.2849&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;16.9370&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;19.0055&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;21.1151&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;25.4055&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;24.4164&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;19.0767&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;23.1562&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;23.3479&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;21.7370&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;24.9726&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;20.3836&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;20.0575&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;17.6603&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;25.2274&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;20.9644&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;32.8055&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;39.5233&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;17.7288&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;18.3096&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;25.8055&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;30.0904&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;27.8082&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;37.3863&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;26.2548&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;17.8795&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;19.8000&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;28.6932&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;27.1041&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;36.1836&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;19.8192&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;31.9644&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;27.0740&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;23.5288&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;21.9068&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;20.3534&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;29.4767&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;22.8274&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;21.2685&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;31.8932&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;31.8795&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;21.2630&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;18.7562&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;16.8822&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;22.0164&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;27.4959&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;27.4904&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;2.7096&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;23.0027&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;19.2767&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;30.4466&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;36.5425&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;32.2521&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.56167161&lt;/P&gt;&lt;P&gt;36.9534&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;30.4164&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.51497509&lt;/P&gt;&lt;P&gt;20.2767&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.09612124&lt;/P&gt;&lt;P&gt;17.2356&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.88637405&lt;/P&gt;&lt;P&gt;20.8247&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;20.8795&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;27.5260&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;19.2493&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;17.8521&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;19.6822&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.61921705&lt;/P&gt;&lt;P&gt;36.8356&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.5616716&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveyfreq data = data1;&lt;/P&gt;&lt;P&gt;strata stratum1;&lt;/P&gt;&lt;P&gt;weight weight1;&lt;/P&gt;&lt;P&gt;/* table months*x1/clwt plots(only)=wtfreqplot(scale=percent type=dotplot); /* BARCHART */&lt;/P&gt;&lt;P&gt;/* table months*x1/clwt plots(only)=wtfreqplot(scale=percent); */&lt;/P&gt;&lt;P&gt;/* table months*x1/clwt plots(only)=wtfreqplot(scale=percent type=dotplot orient=vertical); */&lt;/P&gt;&lt;P&gt;table months*x1/clwt plots(only)=wtfreqplot(scale=percent type=dotplot orient=vertical);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 21:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101680#M5350</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2013-06-14T21:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101681#M5351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the only way to get a plot of just the percents of ones would be to use ODS Output, and PROC SGPLOT.&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods output wtfreqplot=wtfreqplot;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc surveyfreq data = data1;&lt;/P&gt;&lt;P&gt;strata stratum1;&lt;/P&gt;&lt;P&gt;weight weight1;&lt;/P&gt;&lt;P&gt;/* table months*x1/clwt plots(only)=wtfreqplot(scale=percent type=dotplot); /* BARCHART */&lt;/P&gt;&lt;P&gt;/* table months*x1/clwt plots(only)=wtfreqplot(scale=percent); */&lt;/P&gt;&lt;P&gt;/* table months*x1/clwt plots(only)=wtfreqplot(scale=percent type=dotplot orient=vertical); */&lt;/P&gt;&lt;P&gt;table months*x1/clwt plots(only)=wtfreqplot(scale=percent type=dotplot orient=vertical);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=wtfreqplot;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where _column='1';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; highlow x=_row high=u_percent low=l_percent &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / close=_percent legendlabel="Percent";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; series x=_row y=_percent;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; xaxis label='Month';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; yaxis label='Percent';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bolded part gives a plot that I think looks something like what you want.&amp;nbsp; Unfortunately, I can't figrue out how to suppress the two legends so as to give only one.&amp;nbsp; Maybe someone else can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101681#M5351</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-17T14:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101682#M5352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for everything. I think I have what so far needed at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again many thanks&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 19:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101682#M5352</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2013-06-17T19:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101683#M5353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt; &lt;A _jive_internal="true" href="https://communities.sas.com/message/176352#176352"&gt;compare averages and prpoprtions in Proc surveymeans and Proc surveyfreq&lt;/A&gt; &lt;/H1&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do need some help with similar data. How to compare averages and proportions in Proc Surveymeans and Proc Surveyfreq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data contains the following variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x1 = mother age&lt;/P&gt;&lt;P&gt;x2 = father age&lt;/P&gt;&lt;P&gt;x3 = (yes, no) = (1,2)&lt;/P&gt;&lt;P&gt;x4 = (yes, no) = (1,2)&lt;/P&gt;&lt;P&gt;x5 = (yes, no) = (1,2)&lt;/P&gt;&lt;P&gt;x6 = (yes, no) = (1,2)&lt;/P&gt;&lt;P&gt;x7 = stratum&lt;/P&gt;&lt;P&gt;x8 = weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is part of the data can be used as an example:&lt;/P&gt;&lt;P&gt;=====================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="538"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl74" height="20" style="border: 0px solid black;" width="83"&gt;x1&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="62"&gt;x2&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="62"&gt;x3&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="62"&gt;x4&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="62"&gt;x5&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="62"&gt;x6&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="62"&gt;x7&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="83"&gt;x8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;38.8466&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;22.9233&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;25&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;35.4849&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;34&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;14.51497509&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;18.9863&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;20.88637405&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;27.9425&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;23&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;23.0904&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;25&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;20.88637405&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;26.0055&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;34&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;1.56167161&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;28.6411&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;38&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;38.4986&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;42&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;31.1288&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;1.56167161&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;36.9534&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;36&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;14.51497509&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;22.1425&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;29.7890&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;14.51497509&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;28.6904&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;20.0877&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;31.6192&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;1.56167161&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;23.9836&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;24&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;18.6110&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;20.88637405&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;26.5151&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;28&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;2.09612124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;29.2630&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;29&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;1.56167161&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;19.6630&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;17.4466&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;2.09612124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;35.3342&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;41&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;14.51497509&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;29.6466&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;22&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;21.1890&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;25.4055&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;19.0164&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;38.4877&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;2.09612124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;31.0630&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;14.51497509&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;22.5616&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;24&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;1.56167161&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;26.3178&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;36&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;14.51497509&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;21.6959&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;2.09612124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;23.7479&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;23&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;16.61921705&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="20" style="border: 0px solid black;"&gt;19.2658&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;23&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border: 0px solid black;"&gt;2.09612124&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) compare the means of the variables X1 and X2 (continuous variables) in Proc Surveymeans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case 1: independent data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case 2: paired (matched) data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Compare the proportions of ones in the two variables X3 and X4 in Proc Surveyfreq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3) Similar to (2) compare the proportions of ones in the two variables X5 and X6 in Proc Surveyfreq. Once I know how to do (2), I will be able to do (3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much in advance&lt;/P&gt;&lt;P&gt;steven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;email: &lt;A class="jive-link-email-small" href="mailto:sstoline@gmail.com"&gt;sstoline@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 19:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101683#M5353</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2013-08-04T19:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101684#M5354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To compare means under model assumptions, you'll need to use PROC SURVEYREG.&amp;nbsp; If you are interested in the raw means, then Example 92.2 in the SURVEYMEANS documentation should cover what you are looking for under (1).&amp;nbsp; For (2), I think you will have to create another variable that indicates pair membership, and use SURVEYREG with it as a CLASS variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter questions depend on what you are trying to do.&amp;nbsp; If it is just a matter of the proportion of ones in X3 and X4 separately, then Example 90.1 in the SURVEYFREQ documentation is what is needed.&amp;nbsp; However, if you want the proportion of ones in X3 and X4 combined, you will probably have to restructure your dataset to combine the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 14:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101684#M5354</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-08-05T14:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101685#M5355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Dear Steve:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; For 11 months, a linear trend in the means would be:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LSMESTIMATE months 'Linear trend' -5 -4 -3 -2 -1 0 1 2 3 4 5/cl;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If we have only 4 months, how is the linear trend in the means looks like?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you very much&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steven&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 11:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101685#M5355</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2014-01-25T11:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101686#M5356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-3 -1 1 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Google is your friend.&amp;nbsp; Try "orthogonal polynomial" as a search term.&amp;nbsp; There are multiple sites that will calculate the coefficients for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 14:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101686#M5356</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-01-27T14:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101687#M5357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to control this SAS code to get the plot of the row percents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;ods output wtfreqplot=wtfreqplot;&lt;/P&gt;&lt;P&gt;proc surveyfreq data = prepregnancystrata12Tier;&lt;/P&gt;&lt;P&gt;strata STRATUM1; &lt;/P&gt;&lt;P&gt;weight WTANAL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table PREV_LB*Tier/ CL clwt row nowt wchisq chisq chisq1 plots(only)=wtfreqplot(type=dotplot scale=percent); /*orient=vertical*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives the graph of the percent of the ones out of the table total. But instead, I do not to get the graph of the row percent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101687#M5357</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2014-01-31T19:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101688#M5358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use this one, but it still gives me the plot for the table total percent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how to modify it to be able to get the graph of the row percents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc surveyfreq data = prepregnancystrata12Tier;&lt;/P&gt;&lt;P&gt;strata STRATUM1; &lt;/P&gt;&lt;P&gt;weight WTANAL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table PREV_LB*Tier/row plots=(wtfreqplot(cl));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101688#M5358</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2014-01-31T19:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Perform ANOVA and multiple comparisons with PROC surveymeans and more</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101689#M5359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;Dear Steve:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 14pt;"&gt;When request the graph of the lsmeans In Proc Surveyreg, within Plots = options in LSMEANS statement, can we get something like this graph for the confidence interval of means.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;IMG alt="" class="jiveImage" height="315" src="https://communities.sas.com/legacyfs/online/4841_pastedImage_0.png" style="width: 420px; height: 315px;" width="420" /&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;thank you very much&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Steven&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 17:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-ANOVA-and-multiple-comparisons-with-PROC-surveymeans-and/m-p/101689#M5359</guid>
      <dc:creator>sstoline</dc:creator>
      <dc:date>2014-02-01T17:17:00Z</dc:date>
    </item>
  </channel>
</rss>

