<?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: Variable Make in list does not match type prescribed for this list in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431649#M281455</link>
    <description>What I want is to run a regression analysis of that data.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. No attachm Ients. -##</description>
    <pubDate>Mon, 29 Jan 2018 01:20:55 GMT</pubDate>
    <dc:creator>bioresearch</dc:creator>
    <dc:date>2018-01-29T01:20:55Z</dc:date>
    <item>
      <title>Variable Make in list does not match type prescribed for this list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/428900#M281450</link>
      <description>&lt;P&gt;I am trying to run a regeression program on sashelp.car using KEEP statement and here is the code that I used;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data auto;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;keep make model MSRP;&lt;BR /&gt;run;&lt;BR /&gt;proc reg data=auto;&lt;BR /&gt;model MSRP=make model;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;and the log is;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 proc reg data=auto;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 model MSRP=make model;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Variable Make in list does not match type prescribed for this list.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Variable Model in list does not match type prescribed for this list.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;NOTE: The previous statement has been deleted.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE REG used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;BR /&gt;while the error message is '&lt;/PRE&gt;&lt;DIV class="sasError"&gt;ERROR: Variable Make in list does not match type prescribed for this list.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Variable Model in list does not match type prescribed for this list.'&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2018 19:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/428900#M281450</guid>
      <dc:creator>bioresearch</dc:creator>
      <dc:date>2018-01-18T19:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Make in list does not match type prescribed for this list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/428902#M281451</link>
      <description>&lt;P&gt;Make and Model are character variables/categorical variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use them in PROC GLM if that's the model you're trying to build. Also, you don't necessarily need to subset your data ahead of time, you can use the KEEP data set option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=sashelp.cars (keep = msrp make model);
class make model;
model msrp = make model;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS. This doesn't make logical sense, but I'm assuming you're just trying things. FYI - the first e-course on Statistics and SAS is free.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184365"&gt;@bioresearch&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to run a regeression program on sashelp.car using KEEP statement and here is the code that I used;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data auto;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;keep make model MSRP;&lt;BR /&gt;run;&lt;BR /&gt;proc reg data=auto;&lt;BR /&gt;model MSRP=make model;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;and the log is;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;73 proc reg data=auto;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;74 model MSRP=make model;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR: Variable Make in list does not match type prescribed for this list.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR: Variable Model in list does not match type prescribed for this list.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;NOTE: The previous statement has been deleted.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasWarning"&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE REG used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;BR /&gt;while the error message is '&lt;/PRE&gt;
&lt;DIV class="sasError"&gt;ERROR: Variable Make in list does not match type prescribed for this list.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR: Variable Model in list does not match type prescribed for this list.'&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 19:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/428902#M281451</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-18T19:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Make in list does not match type prescribed for this list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/428903#M281452</link>
      <description>&lt;P&gt;seems as though you are trying to do linear regression with Character predictors.&amp;nbsp; try this example for a linear regression with continuous factors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data auto;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;/*keep make model MSRP;*/&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc reg data=auto;&lt;BR /&gt;model MSRP=EngineSize Cylinders;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 19:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/428903#M281452</guid>
      <dc:creator>utrocketeng</dc:creator>
      <dc:date>2018-01-18T19:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Make in list does not match type prescribed for this list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431639#M281453</link>
      <description>&lt;P&gt;This actually produced a valid statement but did not give me what I intended to bring out of the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I need more solutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 00:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431639#M281453</guid>
      <dc:creator>bioresearch</dc:creator>
      <dc:date>2018-01-29T00:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Make in list does not match type prescribed for this list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431646#M281454</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184365"&gt;@bioresearch&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;This actually produced a valid statement but did not give me what I intended to bring out of the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, I need more solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks very much.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are we suppose to know your 'intentions'?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 01:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431646#M281454</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-29T01:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Make in list does not match type prescribed for this list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431649#M281455</link>
      <description>What I want is to run a regression analysis of that data.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. No attachm Ients. -##</description>
      <pubDate>Mon, 29 Jan 2018 01:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431649#M281455</guid>
      <dc:creator>bioresearch</dc:creator>
      <dc:date>2018-01-29T01:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Make in list does not match type prescribed for this list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431650#M281456</link>
      <description>&lt;P&gt;'regression analysis' is vague. Are you looking to run a linear or logistic regression model? What's your independent variable? What's your dependent variable? Running a linear regression analysis with only two categorical variables doesn't make a heck of a lot of sense in practical terms.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184365"&gt;@bioresearch&lt;/a&gt; wrote:&lt;BR /&gt;What I want is to run a regression analysis of that data.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. No attachm Ients. -##&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 01:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-Make-in-list-does-not-match-type-prescribed-for-this/m-p/431650#M281456</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-29T01:32:21Z</dc:date>
    </item>
  </channel>
</rss>

