<?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: How to obtain weighted estimates from Proc Tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363761#M64628</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;Grand Advisor for your feedback.&amp;nbsp;This is the first time I am learning Proc Tabulate to analyze a huge survey data set. Can you please be more&amp;nbsp;explicit?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Artp&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2017 11:48:26 GMT</pubDate>
    <dc:creator>Artp</dc:creator>
    <dc:date>2017-06-02T11:48:26Z</dc:date>
    <item>
      <title>How to obtain weighted estimates from Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363559#M64613</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;Using the code below does not generate weighted estimates. Is there a different way to get the expected results?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = parents &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;vardef&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; pwpwgt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; parseg;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; parseg =&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; all,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;n*&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;f&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;7.0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; pctn*&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;f&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;9.1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;rts&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;25&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;keylabel&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;pctn&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Percent'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;all&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Total'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; parseg &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;prselfm.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;title&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'Weighted Estimates Using vardef=weight in Proc Tabulate'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference for &lt;FONT color="#800080" face="Courier New" size="2"&gt;vardef=weight&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/proc/" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/proc/&lt;/A&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;61895&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;/HTML/default/viewer.htm#a002473731.htm#a000068934&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Artp&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 18:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363559#M64613</guid>
      <dc:creator>Artp</dc:creator>
      <dc:date>2017-06-01T18:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain weighted estimates from Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363579#M64615</link>
      <description>&lt;P&gt;Tabulate N statistic reports just than, the number of values not the weighted n. You may want to consider adding a dummy variable with the value of 1 for each record, use that as a Var variable and request the sum and pctsum of that variable.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 19:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363579#M64615</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-01T19:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain weighted estimates from Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363761#M64628</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Grand Advisor for your feedback.&amp;nbsp;This is the first time I am learning Proc Tabulate to analyze a huge survey data set. Can you please be more&amp;nbsp;explicit?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Artp&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 11:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363761#M64628</guid>
      <dc:creator>Artp</dc:creator>
      <dc:date>2017-06-02T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain weighted estimates from Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363823#M64634</link>
      <description>&lt;P&gt;Did you try option of VAR statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.class;
class sex;
var height/weight=age;
table sex,height*mean;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 14:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363823#M64634</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-06-02T14:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain weighted estimates from Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363863#M64638</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/113906"&gt;@Artp&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you&amp;nbsp;Grand Advisor for your feedback.&amp;nbsp;This is the first time I am learning Proc Tabulate to analyze a huge survey data set. Can you please be more&amp;nbsp;explicit?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Artp&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is your survey sample from a simple random sample? If not such as a stratified sample, a cluster sample or almost any other sample type you may need to be looking into the Survey procs such as Surveymeans SurveyFreq SurveyLogistic and SurveyReg for analysis.&lt;/P&gt;
&lt;P&gt;I would likely only use tabulate for the raw data to get a feel for sample counts, which your code did, and check skip patterns or recoding of variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or display of values summarized from the survey procs.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363863#M64638</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-02T15:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain weighted estimates from Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363869#M64640</link>
      <description>&lt;P&gt;Hello ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your contribution is uplifting! I don't like going on weekends with unsolved mysteries. My problem was how to present the outputs from survey procedures (Surveyfreq and Surveymeans) - weighted freqs/estimates -&amp;nbsp;in refined tables like those from Proc Tabulate or Report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Archer R. Gravely's book "Your Guide To Survey Research Using the SAS System" does an excellent job presenting survey data tables/reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great weekend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Artp&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363869#M64640</guid>
      <dc:creator>Artp</dc:creator>
      <dc:date>2017-06-02T16:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain weighted estimates from Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363879#M64642</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS did not like the inclusion of "/weight=age" ; log said, "unknown variable."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Artp&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 17:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363879#M64642</guid>
      <dc:creator>Artp</dc:creator>
      <dc:date>2017-06-02T17:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain weighted estimates from Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363916#M64647</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/113906"&gt;@Artp&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Ksharp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS did not like the inclusion of "/weight=age" ; log said, "unknown variable."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Artp&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The variable name after Weight= should be YOUR weight variable. Age was an example for the SASHELP.CLASS data set.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 19:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-weighted-estimates-from-Proc-Tabulate/m-p/363916#M64647</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-02T19:26:22Z</dc:date>
    </item>
  </channel>
</rss>

