<?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 Skip data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Skip-data/m-p/277909#M58791</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am asking for help which I want to explain in the following example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data of 100 firms for the period 2000-2008.&amp;nbsp;the data&amp;nbsp;includes profit and No of directors for every firm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to&amp;nbsp;estimate a model that takes the profit data of&amp;nbsp;years&amp;nbsp;2001,2003,2005,2007&amp;nbsp;directors data of the years&amp;nbsp;2000,2002,2004,2006.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which functions in SAS&amp;nbsp;I have to read in order to proceed with it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2016 14:39:44 GMT</pubDate>
    <dc:creator>yael</dc:creator>
    <dc:date>2016-06-16T14:39:44Z</dc:date>
    <item>
      <title>Skip data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Skip-data/m-p/277909#M58791</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am asking for help which I want to explain in the following example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data of 100 firms for the period 2000-2008.&amp;nbsp;the data&amp;nbsp;includes profit and No of directors for every firm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to&amp;nbsp;estimate a model that takes the profit data of&amp;nbsp;years&amp;nbsp;2001,2003,2005,2007&amp;nbsp;directors data of the years&amp;nbsp;2000,2002,2004,2006.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which functions in SAS&amp;nbsp;I have to read in order to proceed with it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 14:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Skip-data/m-p/277909#M58791</guid>
      <dc:creator>yael</dc:creator>
      <dc:date>2016-06-16T14:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Skip data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Skip-data/m-p/277921#M58792</link>
      <description>&lt;P&gt;Without knowing what the data looks like its hard to say, is there a variable for year, if so then just where clause that:&lt;BR /&gt;where year in (&lt;SPAN&gt;2001,2003,2005,2007);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For example. &amp;nbsp;To get good answers, it a good idea to post test data, in the form of a datastep, and what the output should be. &amp;nbsp;Posting the relevant code in this instance would also illustrate it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Skip-data/m-p/277921#M58792</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-16T15:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Skip data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Skip-data/m-p/277937#M58794</link>
      <description>&lt;P&gt;Here is an example where I model Weight as a function of Age, only for odd ages and use the model to estimate the weight of students of even ages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data regClass;
set sashelp.class;
/* Decide which ages to include in the model */
includedAge = mod(age,2);
/* Copy only included weights, other will be set to missing */
if includedAge then regWeight = weight;
run;

/* Estimate the model, output predictions for all observations */
proc reg data=regClass plots=none;
model regWeight = age;
output out=predClass p=predWeight;
run;

proc sort data=predClass; by age; run;

proc sgplot data=predClass;
scatter x=age y=weight / group=includedAge;
series x=age y=predWeight;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3651iF5CDC4B78D0DEEF0/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="SGPlot1.png" title="SGPlot1.png" /&gt;&lt;/P&gt;
&lt;P&gt;of course, proc reg is only one of many procedures available to build predictive models, but most procs work about the same way.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Skip-data/m-p/277937#M58794</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-16T15:33:33Z</dc:date>
    </item>
  </channel>
</rss>

