<?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 Proc Survefreq-using weighted frequencies from 2 separate surveys in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Survefreq-using-weighted-frequencies-from-2-separate/m-p/65427#M18662</link>
    <description>Hi everyone-&lt;BR /&gt;
&lt;BR /&gt;
I have two datasets in which I need to use proc surveyfreq for&lt;BR /&gt;
analysis.  From one dataset, I want to use the row prevalence (and&lt;BR /&gt;
confidence intervals) from the weighted frequency from the cross tab&lt;BR /&gt;
and apply it to the weighted frequency of another cross tab (same&lt;BR /&gt;
variables) from another dataset.  I cannot figure out the coding to do&lt;BR /&gt;
so.  I believe I need to output new datasets and then merge them.&lt;BR /&gt;
&lt;BR /&gt;
Here is an example of what I am looking for:&lt;BR /&gt;
&lt;BR /&gt;
From one dataset-looking for disease prevalence:&lt;BR /&gt;
&lt;BR /&gt;
Proc surveyfreq data=set1;&lt;BR /&gt;
cluster=XXX;&lt;BR /&gt;
strata=xxx;&lt;BR /&gt;
tables age*gender*race*income*dis/row cl;&lt;BR /&gt;
weight wt1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
This will give me the percentage (and CI) of diseased within each&lt;BR /&gt;
cross tab.&lt;BR /&gt;
&lt;BR /&gt;
From another dataset-looking for group to apply disease percentage:&lt;BR /&gt;
&lt;BR /&gt;
Proc surveufreq data=set2;&lt;BR /&gt;
cluster=xxx;&lt;BR /&gt;
strata=xxx;&lt;BR /&gt;
tables area*age*gender*race*income/row cl;&lt;BR /&gt;
weight wt2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
This will give me the cross tab with weighted frequency of the number&lt;BR /&gt;
of people within each area of interest.  This is what I want to apply&lt;BR /&gt;
the disease prevalence (and CI) to.&lt;BR /&gt;
&lt;BR /&gt;
My hope is to be able to present the final data as the number of&lt;BR /&gt;
diseased by age, gender, race and income for each respective area.&lt;BR /&gt;
&lt;BR /&gt;
Any help would be tremendous.&lt;BR /&gt;
&lt;BR /&gt;
Thanks to everyone in advance.</description>
    <pubDate>Mon, 24 Jan 2011 16:13:21 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-01-24T16:13:21Z</dc:date>
    <item>
      <title>Proc Survefreq-using weighted frequencies from 2 separate surveys</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Survefreq-using-weighted-frequencies-from-2-separate/m-p/65427#M18662</link>
      <description>Hi everyone-&lt;BR /&gt;
&lt;BR /&gt;
I have two datasets in which I need to use proc surveyfreq for&lt;BR /&gt;
analysis.  From one dataset, I want to use the row prevalence (and&lt;BR /&gt;
confidence intervals) from the weighted frequency from the cross tab&lt;BR /&gt;
and apply it to the weighted frequency of another cross tab (same&lt;BR /&gt;
variables) from another dataset.  I cannot figure out the coding to do&lt;BR /&gt;
so.  I believe I need to output new datasets and then merge them.&lt;BR /&gt;
&lt;BR /&gt;
Here is an example of what I am looking for:&lt;BR /&gt;
&lt;BR /&gt;
From one dataset-looking for disease prevalence:&lt;BR /&gt;
&lt;BR /&gt;
Proc surveyfreq data=set1;&lt;BR /&gt;
cluster=XXX;&lt;BR /&gt;
strata=xxx;&lt;BR /&gt;
tables age*gender*race*income*dis/row cl;&lt;BR /&gt;
weight wt1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
This will give me the percentage (and CI) of diseased within each&lt;BR /&gt;
cross tab.&lt;BR /&gt;
&lt;BR /&gt;
From another dataset-looking for group to apply disease percentage:&lt;BR /&gt;
&lt;BR /&gt;
Proc surveufreq data=set2;&lt;BR /&gt;
cluster=xxx;&lt;BR /&gt;
strata=xxx;&lt;BR /&gt;
tables area*age*gender*race*income/row cl;&lt;BR /&gt;
weight wt2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
This will give me the cross tab with weighted frequency of the number&lt;BR /&gt;
of people within each area of interest.  This is what I want to apply&lt;BR /&gt;
the disease prevalence (and CI) to.&lt;BR /&gt;
&lt;BR /&gt;
My hope is to be able to present the final data as the number of&lt;BR /&gt;
diseased by age, gender, race and income for each respective area.&lt;BR /&gt;
&lt;BR /&gt;
Any help would be tremendous.&lt;BR /&gt;
&lt;BR /&gt;
Thanks to everyone in advance.</description>
      <pubDate>Mon, 24 Jan 2011 16:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Survefreq-using-weighted-frequencies-from-2-separate/m-p/65427#M18662</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-01-24T16:13:21Z</dc:date>
    </item>
  </channel>
</rss>

