<?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 Access fit line coefficients in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Access-fit-line-coefficients/m-p/926307#M17978</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can access the coefficients of a linear fit through a scatter plot and use it in calculations displayed in a report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. I have 2 scatter plots, both controlled by a set of List controls. Every time I change the list selection, the data displayed and the fit lines on both plots change.&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="sc5_0-1714399253799.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95992i67919041E41A8D2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sc5_0-1714399253799.png" alt="sc5_0-1714399253799.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sc5_1-1714399277066.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95993i656E93F6EBCAC97B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sc5_1-1714399277066.png" alt="sc5_1-1714399277066.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any way to display a table with the difference between the calculated y-values from both fit lines at certain x-values?&lt;/P&gt;&lt;P&gt;This table would dynamically update every time the list control selection changes, and it would be displayed on the main report page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, are the intercept, slope and R-square stored anywhere as objects I can reference? Like can I create a parameter as&amp;nbsp;@chartobject.slope or something?&lt;/P&gt;&lt;P&gt;I can see them when I maximise the chart object, but I don't see a way to display them dynamically updating as part of the main report page.&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="sc5_2-1714399699286.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95994i4184301E3EC3D6DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sc5_2-1714399699286.png" alt="sc5_2-1714399699286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Excel this is easy with pivot tables. Slicers control charts connected to the pivot tables, and formulas =intercept(&amp;lt;y_col&amp;gt;,,x_col&amp;gt;), =slope(&amp;lt;y_col&amp;gt;,,x_col&amp;gt;) capture the trendline dynamically in cells anywhere I want.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't want to have to export a regression / run code / refresh the report / etc., the aim is just to do some quick interactive analysis in the report as we slice data on-the-fly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 14:29:44 GMT</pubDate>
    <dc:creator>sc5</dc:creator>
    <dc:date>2024-04-29T14:29:44Z</dc:date>
    <item>
      <title>Access fit line coefficients</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Access-fit-line-coefficients/m-p/926307#M17978</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can access the coefficients of a linear fit through a scatter plot and use it in calculations displayed in a report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. I have 2 scatter plots, both controlled by a set of List controls. Every time I change the list selection, the data displayed and the fit lines on both plots change.&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="sc5_0-1714399253799.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95992i67919041E41A8D2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sc5_0-1714399253799.png" alt="sc5_0-1714399253799.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sc5_1-1714399277066.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95993i656E93F6EBCAC97B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sc5_1-1714399277066.png" alt="sc5_1-1714399277066.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any way to display a table with the difference between the calculated y-values from both fit lines at certain x-values?&lt;/P&gt;&lt;P&gt;This table would dynamically update every time the list control selection changes, and it would be displayed on the main report page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, are the intercept, slope and R-square stored anywhere as objects I can reference? Like can I create a parameter as&amp;nbsp;@chartobject.slope or something?&lt;/P&gt;&lt;P&gt;I can see them when I maximise the chart object, but I don't see a way to display them dynamically updating as part of the main report page.&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="sc5_2-1714399699286.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95994i4184301E3EC3D6DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sc5_2-1714399699286.png" alt="sc5_2-1714399699286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Excel this is easy with pivot tables. Slicers control charts connected to the pivot tables, and formulas =intercept(&amp;lt;y_col&amp;gt;,,x_col&amp;gt;), =slope(&amp;lt;y_col&amp;gt;,,x_col&amp;gt;) capture the trendline dynamically in cells anywhere I want.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't want to have to export a regression / run code / refresh the report / etc., the aim is just to do some quick interactive analysis in the report as we slice data on-the-fly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 14:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Access-fit-line-coefficients/m-p/926307#M17978</guid>
      <dc:creator>sc5</dc:creator>
      <dc:date>2024-04-29T14:29:44Z</dc:date>
    </item>
  </channel>
</rss>

