<?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 Residual plots in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873958#M43239</link>
    <description>&lt;P&gt;Dear SAS experts,&lt;/P&gt;&lt;P&gt;I have a problem with the residual graph, I need to get this graph bellow in the picture;&lt;/P&gt;&lt;P&gt;Residual values for each country and connect them with line between years&amp;nbsp;&lt;/P&gt;&lt;P&gt;does someone know the code for residuals plots with multiple countries and connected with line&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeroGti_0-1683223518205.png" style="width: 596px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83626iC8864C9CE7A5BF58/image-dimensions/596x423?v=v2" width="596" height="423" role="button" title="PeroGti_0-1683223518205.png" alt="PeroGti_0-1683223518205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 18:16:18 GMT</pubDate>
    <dc:creator>PeroGti</dc:creator>
    <dc:date>2023-05-04T18:16:18Z</dc:date>
    <item>
      <title>Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873958#M43239</link>
      <description>&lt;P&gt;Dear SAS experts,&lt;/P&gt;&lt;P&gt;I have a problem with the residual graph, I need to get this graph bellow in the picture;&lt;/P&gt;&lt;P&gt;Residual values for each country and connect them with line between years&amp;nbsp;&lt;/P&gt;&lt;P&gt;does someone know the code for residuals plots with multiple countries and connected with line&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeroGti_0-1683223518205.png" style="width: 596px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83626iC8864C9CE7A5BF58/image-dimensions/596x423?v=v2" width="596" height="423" role="button" title="PeroGti_0-1683223518205.png" alt="PeroGti_0-1683223518205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 18:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873958#M43239</guid>
      <dc:creator>PeroGti</dc:creator>
      <dc:date>2023-05-04T18:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873961#M43240</link>
      <description>&lt;P&gt;PROC SGPLOT can do this. &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/n1vkttjoy99wkwn1iyy9leor7xg2.htm" target="_self"&gt;Example&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 18:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873961#M43240</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-04T18:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873965#M43241</link>
      <description>Show the code used to create the model and output. &lt;BR /&gt;Ideally, sample data so we could replicate would be ideal.&lt;BR /&gt;&lt;BR /&gt;In general, this is easy enough to do using SGPLOT and the output dataset from the regression. Guessing, something like the following;&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=residuals;&lt;BR /&gt;series x=godina y=residual / group=drzava markers;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 04 May 2023 18:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873965#M43241</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-04T18:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873973#M43242</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using this codes to create the model and output;&lt;/P&gt;&lt;P&gt;/*SAS kod*/&lt;BR /&gt;Proc means data=WORK.SAS_project;&lt;BR /&gt;var 'Housing_Loans_[millions]_y'n GDP_per_capita_x Active_population_x wages_Eurostat_x;&lt;BR /&gt;by drzava;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*SAS kod*/&lt;BR /&gt;data WORK.SAS_project; set WORK.SAS_project;&lt;BR /&gt;'Housing_Loans_[millions]_y'n=log('Housing_Loans_[millions]_y'n);&lt;BR /&gt;Active_population_x=log(Active_population_x);&lt;BR /&gt;wages_Eurostat_x=log(wages_Eurostat_x);&lt;BR /&gt;GDP_per_capita_x=log(GDP_per_capita_x);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*SAS code*/&lt;BR /&gt;title"Model fiksnih efekata";&lt;BR /&gt;proc panel data=WORK.SAS_project;&lt;BR /&gt;id drzava Year;&lt;BR /&gt;model 'Housing_Loans_[millions]_y'n= Active_population_x GDP_per_capita_x wages_Eurostat_x /fixone printfixed;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;now I need to create that graph for residual values on the y axis for each country, if would be easier to send a file maybe?&lt;/P&gt;&lt;P&gt;thank you in andvance&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 18:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873973#M43242</guid>
      <dc:creator>PeroGti</dc:creator>
      <dc:date>2023-05-04T18:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873975#M43243</link>
      <description>&lt;P&gt;Add the following to your proc panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;output out=residuals r=residual;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And then try the code I posted replacing 'godina' with year.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 18:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873975#M43243</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-04T18:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873981#M43244</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;I have tried the code and the next error appears:&lt;/P&gt;&lt;P&gt;proc sgplot data=WORK.SAS_project;&lt;BR /&gt;series x=Year y=residual / group=drzava markers;&lt;BR /&gt;ERROR: Variable RESIDUAL not found.&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do You know why is something wrong in the code?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 19:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873981#M43244</guid>
      <dc:creator>PeroGti</dc:creator>
      <dc:date>2023-05-04T19:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873982#M43245</link>
      <description>&lt;P&gt;this is the code that I write:&lt;/P&gt;&lt;P&gt;proc panel data=WORK.SAS_project;&lt;BR /&gt;id drzava Year;&lt;BR /&gt;model 'Housing_Loans_[millions]_y'n= Active_population_x GDP_per_capita_x wages_Eurostat_x /fixone printfixed;&lt;BR /&gt;output out=residual r=residual;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=WORK.SAS_project;&lt;BR /&gt;series x=Year y=residual / group=drzava markers;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 19:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873982#M43245</guid>
      <dc:creator>PeroGti</dc:creator>
      <dc:date>2023-05-04T19:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873994#M43246</link>
      <description>&lt;P&gt;the closest results corresponding to the graph above I get with next code:&lt;/P&gt;&lt;P&gt;/*SAS code*/&lt;BR /&gt;title"Model fiksnih efekata";&lt;BR /&gt;symbol value=circle;&lt;BR /&gt;proc reg data=WORK.SAS_project;&lt;BR /&gt;model Year= Active_population_x GDP_per_capita_x wages_Eurostat_x ;&lt;BR /&gt;plot residual. * predicted.;&lt;BR /&gt;by drzava;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;but as you can see in the picture bellow the results I get is for each country separately (I need all together in one graph) and additionally I don't know to connect the dots with line in this code&lt;/P&gt;&lt;P&gt;if someone knows please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeroGti_0-1683230873765.png" style="width: 647px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83633i9DA1148CBA99BE20/image-dimensions/647x451?v=v2" width="647" height="451" role="button" title="PeroGti_0-1683230873765.png" alt="PeroGti_0-1683230873765.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/873994#M43246</guid>
      <dc:creator>PeroGti</dc:creator>
      <dc:date>2023-05-04T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/874004#M43247</link>
      <description>&lt;P&gt;You named the output of the data set with the residuals (out=residual).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then for the plotting step you use the original data set (data=sas_project), not the new one created with the residuals. Review the code I've posted and compare for the differences.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/874004#M43247</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-04T20:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Residual plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/874008#M43248</link>
      <description>thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 04 May 2023 21:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Residual-plots-in-SAS/m-p/874008#M43248</guid>
      <dc:creator>PeroGti</dc:creator>
      <dc:date>2023-05-04T21:06:27Z</dc:date>
    </item>
  </channel>
</rss>

