<?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 SAS says data contains no columns when using linear regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443178#M23277</link>
    <description>&lt;P&gt;I'm new to SAS (using the university edition) and am having issues with using Linear Regression.&lt;/P&gt;&lt;P&gt;I loaded a CSV file and then in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Tasks and Utilities &amp;gt; Tasks &amp;gt; Statistics &amp;gt; Linear Regression&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I selected&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;WORK.BP&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(BP = filename) for my data. When I try to select my dependent variable SAS says "No columns are available."&lt;/P&gt;&lt;P&gt;The CVS file appears to have loaded correctly and has 2 columns so I can't figure out what the issue is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I used for loading the file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data BP;
infile '/folders/myfolders/BP.csv' dlm =',' firstobs=2;
input BP  $Pressure$;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is what the output looks like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/CsUqW.png" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 05:54:11 GMT</pubDate>
    <dc:creator>cedge113</dc:creator>
    <dc:date>2018-03-07T05:54:11Z</dc:date>
    <item>
      <title>SAS says data contains no columns when using linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443178#M23277</link>
      <description>&lt;P&gt;I'm new to SAS (using the university edition) and am having issues with using Linear Regression.&lt;/P&gt;&lt;P&gt;I loaded a CSV file and then in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Tasks and Utilities &amp;gt; Tasks &amp;gt; Statistics &amp;gt; Linear Regression&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I selected&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;WORK.BP&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(BP = filename) for my data. When I try to select my dependent variable SAS says "No columns are available."&lt;/P&gt;&lt;P&gt;The CVS file appears to have loaded correctly and has 2 columns so I can't figure out what the issue is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I used for loading the file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data BP;
infile '/folders/myfolders/BP.csv' dlm =',' firstobs=2;
input BP  $Pressure$;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is what the output looks like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/CsUqW.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 05:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443178#M23277</guid>
      <dc:creator>cedge113</dc:creator>
      <dc:date>2018-03-07T05:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS says data contains no columns when using linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443187#M23278</link>
      <description>&lt;P&gt;Remove the dollar signs from the INPUT statement.&amp;nbsp; They are making both of your variables character.&amp;nbsp; Since regression requires numeric variables, there are no variables that can be used for regression.&amp;nbsp; (Yes, there are cases where a character variable is used to create dummy variables, but that is not the case here.)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 07:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443187#M23278</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-07T07:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS says data contains no columns when using linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443188#M23279</link>
      <description>&lt;P&gt;Remove the dollars from your input statement, so that the variables are created as numeric.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 07:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443188#M23279</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-07T07:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS says data contains no columns when using linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443190#M23280</link>
      <description>&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 07:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-says-data-contains-no-columns-when-using-linear-regression/m-p/443190#M23280</guid>
      <dc:creator>cedge113</dc:creator>
      <dc:date>2018-03-07T07:10:13Z</dc:date>
    </item>
  </channel>
</rss>

