<?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: simple linear regression for yearly trend with sample weights in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171478#M264304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post some examples of the code you tried and any associated error messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 21:18:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-07-08T21:18:43Z</dc:date>
    <item>
      <title>simple linear regression for yearly trend with sample weights</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171477#M264303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am beginner user for SAS. I have large pubic data with multiple variables including sample weights. I am trying to do simple linear regression to check for yearly trends in mortality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question will be "trends in mortality over time".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my extracted data has variables 'year', 'died' (0=alive, 1=died) and 'weight'(sample weight). I am planning to use proc surveyreg but can't seem to get SAS code right. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my data looks like as follow (around 5,00,000 observations in dataset)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; died&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight&lt;/P&gt;&lt;P&gt;2002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.3383&lt;/P&gt;&lt;P&gt;2002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.1405&lt;/P&gt;&lt;P&gt;2003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.2034&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.9179&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.9550&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for something as follows (below is the example from the different article and I am looking for similar analysis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/6792_pastedImage_0.png" style="width: 708px; height: 81px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Claw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 18:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171477#M264303</guid>
      <dc:creator>Claw</dc:creator>
      <dc:date>2014-07-08T18:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: simple linear regression for yearly trend with sample weights</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171478#M264304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post some examples of the code you tried and any associated error messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171478#M264304</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-08T21:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: simple linear regression for yearly trend with sample weights</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171479#M264305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried the following code. It seems completely wrong because 'died' is categorical variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveyreg data=allibd;&lt;/P&gt;&lt;P&gt;model died=year / solution;&lt;/P&gt;&lt;P&gt;weight discwt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know if there is upward / downward/ neutral trend in percentage of individuals from 2002 to 2011.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 02:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171479#M264305</guid>
      <dc:creator>Claw</dc:creator>
      <dc:date>2014-07-09T02:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: simple linear regression for yearly trend with sample weights</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171480#M264306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you may need to summarize the data to get PERCENT of the category of interes to model. Don't forget to accumulate the weights if so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 14:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171480#M264306</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-09T14:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: simple linear regression for yearly trend with sample weights</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171481#M264307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than SURVEYREG, you should look at SURVEYLOGISTIC as a method.&amp;nbsp; The examples in the documentation reference more than two categorical levels, but it should not be a problem to reduce the complexity in those examples to what you are doing.&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>Wed, 09 Jul 2014 15:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-linear-regression-for-yearly-trend-with-sample-weights/m-p/171481#M264307</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-09T15:07:25Z</dc:date>
    </item>
  </channel>
</rss>

