<?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 Proc plot - log funtion reading as a variable in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Proc-plot-log-funtion-reading-as-a-variable/m-p/506178#M6417</link>
    <description>&lt;P&gt;I am using SAS Studio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;variables are fertility and pcturban&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to graph log(ferility)*pcturban, but SAS&amp;nbsp; is reading log as a variable, which I don't have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc plot data=UN112;
	plot log(fertility)*pcturban;
run;
proc reg data=UN112;
	model log(fertility)=pcturban;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Log function does not highlight blue in SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: Variable LOG not found.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;NOTE: The previous statement has been deleted.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, /, :, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_, {.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 22:01:59 GMT</pubDate>
    <dc:creator>wha9202</dc:creator>
    <dc:date>2018-10-19T22:01:59Z</dc:date>
    <item>
      <title>Proc plot - log funtion reading as a variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-plot-log-funtion-reading-as-a-variable/m-p/506178#M6417</link>
      <description>&lt;P&gt;I am using SAS Studio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;variables are fertility and pcturban&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to graph log(ferility)*pcturban, but SAS&amp;nbsp; is reading log as a variable, which I don't have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc plot data=UN112;
	plot log(fertility)*pcturban;
run;
proc reg data=UN112;
	model log(fertility)=pcturban;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Log function does not highlight blue in SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: Variable LOG not found.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;NOTE: The previous statement has been deleted.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, /, :, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_, {.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 22:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-plot-log-funtion-reading-as-a-variable/m-p/506178#M6417</guid>
      <dc:creator>wha9202</dc:creator>
      <dc:date>2018-10-19T22:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc plot - log funtion reading as a variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-plot-log-funtion-reading-as-a-variable/m-p/506184#M6418</link>
      <description>&lt;P&gt;Do you actually want the TEXT based result from using Proc Plot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to use a data step to calculate the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you might try&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=un112;
   scatter x=ferility y=pcturban;
   xaxis  type=log;
run;&lt;/PRE&gt;
&lt;P&gt;Proc Reg also requires the transform done before hand not on a model statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that proc reg also supports plotting with the Plots= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the time when you think something is a keyword and does not highlight in the editor you are either using it incorrectly or it is not&amp;nbsp; valid at all. Most of the time, there are some exceptions.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 22:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-plot-log-funtion-reading-as-a-variable/m-p/506184#M6418</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-19T22:41:44Z</dc:date>
    </item>
  </channel>
</rss>

