<?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: GTL: LOGPARM with Logarithmic Axis in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GTL-LOGPARM-with-Logarithmic-Axis/m-p/835469#M330302</link>
    <description>&lt;P&gt;The WARNING alerts you to the fact that you can't use a LINEPARM statement if one of the axes are TYPE=LOG.&lt;/P&gt;
&lt;P&gt;You can use a DATA step to create a new variable LogResult = log(Result). Then use TYPE=LINEAR for the YAXISOPTS and plot the regression line for X=Dose and Y=LogResult.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 17:49:04 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-09-27T17:49:04Z</dc:date>
    <item>
      <title>GTL: LOGPARM with Logarithmic Axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GTL-LOGPARM-with-Logarithmic-Axis/m-p/835464#M330301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to plot a SCATTERPLOT with a slope, via LINEPARM. This works perfectly for a linear axis, but does not like it when I change the Y axis to a logarithmic axis. Can anyone help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; proc template;
          define statgraph layoutoverlay;
            %* Define Dynamic labels;
            dynamic xlabel ylabel ;

            %* Begin the graph template;
            begingraph / border = false designwidth = 900px designheight = 530px;

              %* Title;
              entrytitle "My title " / textattrs = (family = "Courier new" weight=bold size=10);

              layout overlay / /* X axis */
                               xaxisopts = (label = xlabel
                                            labelattrs = (family = "arial" weight=bold size=10)
                                            labelfitpolicy = splitalways
                                            labelsplitchar = "|"
                                            display = (label ticks tickvalues)
                                            type = linear
                                            linearopts = (viewmin=0 viewmax=50)
                                            tickvalueattrs = (family = "arial" size=9)
                                            offsetmin = 0.05
                                            offsetmax = 0.05)
                               /* Y axis */
                               yaxisopts = (label = ylabel
                                            labelattrs = (family = "arial" weight=bold size=10)
                                            labelfitpolicy = splitalways
                                            labelsplitchar = "|"
                                            display = (label ticks tickvalues)
                                            type = log
                                            logopts=(base=10
                                                     tickintervalstyle=logexpand
                                                     thresholdmin=1 thresholdmax=1)
                                            tickvalueattrs = (family = "arial" size=9)
                                            offsetmin = 0.05
                                            offsetmax = 0.05);

                %* Line Plot;
                scatterplot x=dose y=result / group = mygroup
                                                groupdisplay = overlay
                                                name = "scatter";

                %* Diagonal line;
                lineparm x=0 y=intercept_log slope=slope_log / clip=true;

                %* Legend;
               discretelegend "scatter" / title = "Treatment: "
                                          titleattrs = (family = "arial" weight=bold size=10)
                                          valueattrs = (family = "arial" size=9)
                                          location = outside
                                          halign = center
                                          valign = bottom;

              endlayout;
            endgraph;
          end;
        run;

        %* Produce output;
        proc sgrender
          data = my_data
          template = layoutoverlay;
          dynamic xlabel = "X Axis"
                  ylabel = "Y Axist";
        run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When running this with the Y axis defined as log I get&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;WARNING: LINEPARM statement has a conflict with the axis type.&lt;BR /&gt;&lt;BR /&gt;After some googling I could only find this, which talks about "working with transformed values", but I am merely the programmer not the statistician.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;As a note, my INTERCEPT=5.05 and SLOPE=4.17 which come directly from a PROC REG which used values converted using the LOG10 function, and ALPHA=0.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 17:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GTL-LOGPARM-with-Logarithmic-Axis/m-p/835464#M330301</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2022-09-27T17:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: GTL: LOGPARM with Logarithmic Axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GTL-LOGPARM-with-Logarithmic-Axis/m-p/835469#M330302</link>
      <description>&lt;P&gt;The WARNING alerts you to the fact that you can't use a LINEPARM statement if one of the axes are TYPE=LOG.&lt;/P&gt;
&lt;P&gt;You can use a DATA step to create a new variable LogResult = log(Result). Then use TYPE=LINEAR for the YAXISOPTS and plot the regression line for X=Dose and Y=LogResult.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 17:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GTL-LOGPARM-with-Logarithmic-Axis/m-p/835469#M330302</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-09-27T17:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: GTL: LOGPARM with Logarithmic Axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GTL-LOGPARM-with-Logarithmic-Axis/m-p/835558#M330331</link>
      <description>This does help, I can also use the log axis wit the regression plot too. Thank you.</description>
      <pubDate>Wed, 28 Sep 2022 09:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GTL-LOGPARM-with-Logarithmic-Axis/m-p/835558#M330331</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2022-09-28T09:45:30Z</dc:date>
    </item>
  </channel>
</rss>

