<?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 How to modify a data set by deleting observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527012#M143614</link>
    <description>&lt;P&gt;How can I modify a data set by deleting the ith observation for every patient i.&lt;/P&gt;&lt;P&gt;Also,how can I build the model and output the estimated values, and save the predicted values of a variable belonging to an ith patient.&lt;/P&gt;&lt;P&gt;The question says dont use macro.&lt;/P&gt;&lt;P&gt;I have no idea on how to approach this.&lt;/P&gt;&lt;P&gt;It also says using cross validation method.&lt;/P&gt;&lt;P&gt;I attached an image of my data set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 18:22:12 GMT</pubDate>
    <dc:creator>Stacy</dc:creator>
    <dc:date>2019-01-14T18:22:12Z</dc:date>
    <item>
      <title>How to modify a data set by deleting observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527012#M143614</link>
      <description>&lt;P&gt;How can I modify a data set by deleting the ith observation for every patient i.&lt;/P&gt;&lt;P&gt;Also,how can I build the model and output the estimated values, and save the predicted values of a variable belonging to an ith patient.&lt;/P&gt;&lt;P&gt;The question says dont use macro.&lt;/P&gt;&lt;P&gt;I have no idea on how to approach this.&lt;/P&gt;&lt;P&gt;It also says using cross validation method.&lt;/P&gt;&lt;P&gt;I attached an image of my data set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 18:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527012#M143614</guid>
      <dc:creator>Stacy</dc:creator>
      <dc:date>2019-01-14T18:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify a data set by deleting observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527013#M143615</link>
      <description>&lt;P&gt;&lt;A href="https://video.sas.com/detail/video/4573016761001/filtering-a-sas-table-in-a-data-step?autoStart=true&amp;amp;q=filter" target="_blank"&gt;https://video.sas.com/detail/video/4573016761001/filtering-a-sas-table-in-a-data-step?autoStart=true&amp;amp;q=filter&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://video.sas.com/detail/video/4414728579001/filter-and-sort-data?autoStart=true&amp;amp;q=filter" target="_blank"&gt;https://video.sas.com/detail/video/4414728579001/filter-and-sort-data?autoStart=true&amp;amp;q=filter&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://video.sas.com/detail/video/4664331677001/using-the-filter-data-task-in-sas-studio?autoStart=true&amp;amp;q=filter" target="_blank"&gt;https://video.sas.com/detail/video/4664331677001/using-the-filter-data-task-in-sas-studio?autoStart=true&amp;amp;q=filter&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For simulations I highly recommend reading the paper,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Don%27t_Be_Loopy:_Re-Sampling_and_Simulation_the_SAS%C2%AE_Way" target="_blank"&gt;http://www.sascommunity.org/wiki/Don%27t_Be_Loopy:_Re-Sampling_and_Simulation_the_SAS%C2%AE_Way&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is some instructions for turning a program into a macro:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is homework, so I strongly suggest you make an attempt first at all of this, do you have the 'base case' built, ie your regression code? If not, the statistics e-course is free or UCLA has many tutorials on their page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/253720"&gt;@Stacy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How can I modify a data set by deleting the ith observation for every patient i.&lt;/P&gt;
&lt;P&gt;Also,how can I build the model and output the estimated values, and save the predicted values of a variable belonging to an ith patient.&lt;/P&gt;
&lt;P&gt;The question says dont use macro.&lt;/P&gt;
&lt;P&gt;I have no idea on how to approach this.&lt;/P&gt;
&lt;P&gt;It also says using cross validation method.&lt;/P&gt;
&lt;P&gt;I attached an image of my data set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 18:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527013#M143615</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-14T18:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify a data set by deleting observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527016#M143616</link>
      <description>&lt;P&gt;Here is my regression code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=epilepsy;
   model rate = Age Treatment Period/ p MSE;
   output out = predicted p = yhat r = yresid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jan 2019 18:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527016#M143616</guid>
      <dc:creator>Stacy</dc:creator>
      <dc:date>2019-01-14T18:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify a data set by deleting observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527018#M143618</link>
      <description>I don't think you're intended to use that data set. You need to use the data that's been filtered and set out to once a week - ie the data from a previous step in your assignment.</description>
      <pubDate>Mon, 14 Jan 2019 18:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-modify-a-data-set-by-deleting-observations/m-p/527018#M143618</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-14T18:34:11Z</dc:date>
    </item>
  </channel>
</rss>

