<?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: Regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278314#M14683</link>
    <description>&lt;P&gt;Reeza linked to several resources, which I hope you will find time to watch or read.&amp;nbsp; Simples questions like this are covered in the examples and in the syntax section for PROC LOGISTIC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get an analysis for each unique country name, you can sort the data by country and use the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_logistic_syntax04.htm" target="_self"&gt;BY statement&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;BY CountryName;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2016 20:12:34 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-06-17T20:12:34Z</dc:date>
    <item>
      <title>Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278304#M14679</link>
      <description>&lt;P&gt;I want to apply regression analysis by following way.&lt;/P&gt;
&lt;P&gt;leverage=a+family+tangibility+market+sales+profit+e&lt;/P&gt;
&lt;P&gt;here i want to analyze the leverage on family firms. family is a binary variable it has value 0 and 1, while other are control variables.&lt;/P&gt;
&lt;P&gt;can anyone guide?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 19:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278304#M14679</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-17T19:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278306#M14680</link>
      <description>&lt;P&gt;What's your question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a tutorial on regression with SAS&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter1/sasreg1.htm" target="_blank"&gt;http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter1/sasreg1.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here are a list of topics/tutorials on SAS topcis.&amp;nbsp;The first SAS course in data analysis, which includes regression is free, see the bottom right hand side of the page.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/training/tutorial/" target="_blank"&gt;http://support.sas.com/training/tutorial/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 19:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278306#M14680</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-17T19:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278308#M14681</link>
      <description>&lt;P&gt;I assume your question is "Wht procedure do I use?"&lt;/P&gt;
&lt;P&gt;Try PROC LOGISTIC. The basic syntax is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=Have;&lt;/P&gt;
&lt;P&gt;model &lt;SPAN style="font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;leverage = family tangibility market sales profit;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;run;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;If any of those variable are discrete classification variables, put them on a CLASS statement, like this:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10pt;"&gt;&lt;FONT color="#000000"&gt;class family;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 19:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278308#M14681</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-06-17T19:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278313#M14682</link>
      <description>&lt;P&gt;yes right.&lt;/P&gt;
&lt;P&gt;my data also contain country name. what to add to get results for each country?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 20:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278313#M14682</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-17T20:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278314#M14683</link>
      <description>&lt;P&gt;Reeza linked to several resources, which I hope you will find time to watch or read.&amp;nbsp; Simples questions like this are covered in the examples and in the syntax section for PROC LOGISTIC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get an analysis for each unique country name, you can sort the data by country and use the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_logistic_syntax04.htm" target="_self"&gt;BY statement&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;BY CountryName;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 20:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278314#M14683</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-06-17T20:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278394#M14689</link>
      <description>&lt;P&gt;When i applied this regression&lt;/P&gt;
&lt;P&gt;proc logistic data=have;&lt;/P&gt;
&lt;P&gt;model bdr = fam tang MTB size prof;&lt;BR /&gt;class fam;&lt;BR /&gt;by count;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Than i got this error. how to handle this?&lt;/P&gt;
&lt;P&gt;ERROR: Variable F should be either numeric or specified in the CLASS statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get country wise results. and fam is the dummy variable having value 0 and 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 15:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278394#M14689</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-18T15:46:27Z</dc:date>
    </item>
    <item>
      <title>Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278399#M14692</link>
      <description>&lt;P&gt;I applied this regression&lt;/P&gt;
&lt;P&gt;proc logistic data=have;&lt;/P&gt;
&lt;P&gt;model bdr = fam tang MTB size prof;&lt;BR /&gt;class fam;&lt;BR /&gt;by count;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Than i got this error. how to handle this?&lt;/P&gt;
&lt;P&gt;ERROR: Variable Fam should be either numeric or specified in the CLASS statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get country wise results. and fam is the dummy variable having value 0 and 1&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 16:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278399#M14692</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-18T16:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278401#M14691</link>
      <description>&lt;P&gt;What values do the variable BDR take on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post your log, your error doesn't align with the code you've posted and we'd just be guessing at what the issue might be.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 18:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278401#M14691</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-18T18:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278403#M14693</link>
      <description>&lt;P&gt;I have again attached the file.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 18:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278403#M14693</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-18T18:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278405#M14694</link>
      <description>&lt;P&gt;You don't need logistic regression, you need a regression model, try PROC GLM. Your dependent variable is continuous not binary, logistic regression is intended for variables that take a binary outcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you get errors please post your log, otherwise we can't tell where you went wrong. As I mentioned above, your error doesn't match your code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 18:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278405#M14694</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-18T18:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278441#M14695</link>
      <description>&lt;P&gt;i have applied following regression everytime same error. i have pasted my log over here. please take a look. i have applied regression by putting class fam and also without putting class fam, both time same error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm data=d9;&lt;/P&gt;
&lt;P&gt;model bdr = fam tang MTB size prof;&lt;BR /&gt;class fam;&lt;BR /&gt;by count;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;275 *logistic regression;&lt;BR /&gt;276 proc glm data=d9;&lt;BR /&gt;277&lt;BR /&gt;278 model bdr = fam tang MTB size prof;&lt;BR /&gt;ERROR: Variable Fam should be either numeric or specified in the CLASS statement.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;279 class fam;&lt;BR /&gt;280 by count;&lt;BR /&gt;281&lt;BR /&gt;282 run;&lt;/P&gt;
&lt;P&gt;NOTE: Interactivity disabled with BY processing.&lt;BR /&gt;NOTE: PROCEDURE GLM used (Total process time):&lt;BR /&gt; real time 0.01 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 05:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278441#M14695</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-19T05:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278443#M14696</link>
      <description>&lt;P&gt;The log is clear. The variable FAM is a character variable but it's being included as a continuous variable. Convert it to numeric if it's a number or include it in the Class statement if it's a categorical variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc glm is one of the few Procs that requires a quit at the end, in addition to the run statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 05:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278443#M14696</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-19T05:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278444#M14697</link>
      <description>&lt;P&gt;but in table i have seen fam has values 0 or 1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to delete fam values if they are other than 0 or 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 05:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278444#M14697</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-19T05:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278446#M14698</link>
      <description>&lt;P&gt;Run a proc contents on the dataset to see variable type.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run a proc freq to see what values your variable contains.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc contents data=mydata;
Run;

Proc freq data= mydata;
Table FAM;
Run;&lt;BR /&gt;&lt;BR /&gt;data converted;&lt;BR /&gt;set mydata;&lt;BR /&gt;fam_num = input(fam, 2.);&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Numbers can be stored in a character variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if it's 0/1 you can treat it as a categorical variable and include it in the Class statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 05:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278446#M14698</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-19T05:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278447#M14699</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the frequency of fam.&amp;nbsp;it contains value 0 and 1 but its types says that it is a character variable. i dont know how to run regression if it is so.&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Freq: One-Way Frequencies" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="5" scope="colgroup"&gt;Fam&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Fam&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Frequency&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Percent&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Cumulative&lt;BR /&gt;Frequency&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Cumulative&lt;BR /&gt;Percent&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;0&lt;/TH&gt;
&lt;TD class="r data"&gt;119807&lt;/TD&gt;
&lt;TD class="r data"&gt;94.31&lt;/TD&gt;
&lt;TD class="r data"&gt;119807&lt;/TD&gt;
&lt;TD class="r data"&gt;94.31&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;7234&lt;/TD&gt;
&lt;TD class="r data"&gt;5.69&lt;/TD&gt;
&lt;TD class="r data"&gt;127041&lt;/TD&gt;
&lt;TD class="r data"&gt;100.00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Jun 2016 05:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278447#M14699</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-19T05:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278448#M14700</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if it's 0/1 you can treat it as a categorical variable and include it in the Class statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Let me repeat myself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the code sample above demonstrated how to convert it to numeric.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Heres a SAS that explains it as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/590.html" target="_blank"&gt;http://support.sas.com/kb/24/590.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 05:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278448#M14700</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-19T05:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278450#M14701</link>
      <description>&lt;P&gt;i have applied conversion code that you sent after that still it shows its character variable(after applying that converstion code activity do not show any erro) meanwhile i am trying to understand the link you sent.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 06:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278450#M14701</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2016-06-19T06:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278463#M14702</link>
      <description>Please post proc contents of new dataset. Note that fam will be character and fam_num would be numeric and you can use fam_num&lt;BR /&gt;Instead of fam.</description>
      <pubDate>Sun, 19 Jun 2016 09:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278463#M14702</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-19T09:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278466#M14703</link>
      <description>&lt;P&gt;Put the CLASS statement before the MODEL statement.&amp;nbsp; That will resolve this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 10:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/278466#M14703</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-06-19T10:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/542932#M27195</link>
      <description>&lt;P&gt;I'm having the same problem, but I'm already using proc glm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data = cross;&lt;/P&gt;&lt;P&gt;model tern_co tern_cr col_L col_a col_b pH hume intra_fat rendi = sexo edad musc;&lt;BR /&gt;class = sexo, edad, musc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I only put one variable for class? I really don't get what's wrong with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here's the whole code:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cross;
infile datalines dlm='09'x;
input sexo$ edad$ musc$ tern_co tern_cr col_L col_a col_b pH hume intra_fat rendi;

cards; 
c	1	LD	4.00	1.20	28.47	19.34	17.22	5.64	73.09	1.49	51.65
c	1	LM	3.60	1.50	47.90	13.02	17.87	5.48	71.62	1.88	51.65
c	1	LD	3.90	1.20	29.57	20.11	16.55	5.49	70.33	3.94	53.16
c 	1	LM	4.40	1.40	42.41	16.10	17.13	5.38	74.29	2.25	53.16
c	1	LD	6.40	1.30	33.67	13.82	10.52	5.66	70.33	3.94	51.14
c	1	LM	3.50	3.10	51.67	11.48	15.29	5.62	74.29	2.25	51.14
c	2	LD	4.00	0.80	32.35	21.36	19.52	5.51	72.44	2.32	52.56
c	2	LM	2.80	1.70	41.68	17.34	18.90	5.42	74.09	1.77	52.56
c	2	LD	2.80	1.70	34.40	15.96	11.63	5.42	72.53	2.71	51.39
c	2	LM	3.00	1.80	43.85	15.23	14.98	5.43	67.65	0.62	51.39
c	2	LD	4.20	2.10	37.96	15.01	11.91	5.61	73.74	1.35	52.38
c	2	LM	2.40	0.80	48.28	13.37	15.36	5.58	76.92	0.52	52.38
c	2	LD	2.60	1.10	36.98	20.32	19.54	5.40	71.99	3.94	51.16
c	2	LM	3.70	2.10	46.82	16.23	19.29	5.50	74.18	2.27	51.16
c	3	LD	3.80	1.10	33.16	15.43	11.33	5.97	72.59	2.72	46.08
c	3	LM	5.00	2.80	42.88	16.69	15.50	5.80	72.28	2.80	46.08
c	3	LD	5.00	1.20	34.05	16.38	11.67	5.94	69.29	3.01	53.26
c	3	LM	4.50	1.50	45.51	16.17	15.48	5.84	75.85	2.38	53.26
c	3	LD	7.70	0.60	33.44	17.43	12.74	5.96	72.81	2.74	53.25
c	3	LM	5.60	1.80	39.77	18.77	16.32	5.67	70.98	3.54	53.25
c	3	LD	6.80	1.00	33.95	15.53	11.65	5.71	75.52	2.69	50.51
c	3	LM	4.60	2.00	45.97	16.00	16.85	5.78	76.03	1.80	50.51
c	3	LD	8.20	0.90	33.79	18.33	19.79	5.90	73.31	3.23	54.61
c	3	LM	8.60	1.30	42.51	18.53	16.88	5.62	70.80	2.90	54.61
c	3	LD	7.70	5.60	33.44	17.43	12.74	5.34	72.81	2.74	51.99
c	3	LM	0.60	1.80	39.77	18.77	16.32	5.67	70.98	3.54	51.99
c	3	LD	0.90	3.90	32.26	17.96	13.32	5.66	69.66	5.35	50.97
i	3	LM	1.70	3.80	42.48	16.66	15.73	5.62	70.06	1.80	50.97
i	1	LD	4.90	1.40	29.33	20.27	17.91	5.60	72.15	1.37	53.79
i	1	LM	3.30	2.00	44.92	15.46	17.80	5.13	74.60	1.47	53.79
i	1	LD	2.60	1.60	33.22	18.53	17.29	5.55	71.58	2.17	52.71
i	1	LM	3.60	1.60	44.38	14.74	17.66	5.53	75.81	0.98	52.71
i	1	LD	5.20	1.20	38.74	17.49	15.40	5.47	74.88	0.99	55.05
i	1	LM	3.90	1.40	47.97	12.14	14.44	5.51	73.09	2.32	55.05
i	1	LD	4.50	1.30	36.49	15.43	12.05	5.49	72.73	1.69	52.44
i	1	LM	4.10	4.10	44.86	14.32	14.64	5.43	74.23	0.89	52.44
i	2	LD	7.40	1.00	35.84	21.48	19.73	5.52	71.47	3.10	48.01
i	2	LM	3.10	3.20	42.18	15.83	18.07	5.66	73.12	0.89	48.01
i	2	LD	4.70	3.20	32.12	16.24	11.50	5.54	70.20	2.06	56.11
i	2	LM	3.50	1.70	39.48	15.74	13.24	5.80	74.94	0.69	56.11
i	2	LD	1.60	1.60	27.52	12.71	11.48	5.57	72.79	2.00	52.04
i	2	LM	2.20	2.00	32.95	12.72	15.71	5.29	73.67	1.19	52.04
i	2	LD	6.60	1.80	31.88	18.85	12.78	5.47	74.86	1.13	51.90
i	2	LM	1.70	2.10	43.81	12.96	13.28	6.26	72.62	1.99	51.90
i	2	LD	4.20	1.20	33.35	15.53	11.08	5.94	75.22	1.06	55.94
i	2	LM	3.70	1.70	44.54	12.78	13.52	5.93	72.44	3.62	55.94
i	3	LD	9.60	1.30	30.95	15.13	11.43	5.92	76.41	0.48	52.74
i	3	LM	4.40	3.40	37.87	14.27	12.79	5.75	76.43	0.64	52.74
i	3	LD	6.50	1.20	33.78	18.41	13.29	6.78	75.11	1.17	56.79
i	3	LM	5.20	1.50	41.18	16.67	14.65	5.89	76.52	1.17	56.79
i	3	LD	5.80	1.20	32.89	16.03	11.48	5.87	75.46	1.20	57.22
i	3	LM	8.50	2.20	46.38	15.79	15.71	5.85	74.35	1.32	57.22
i	3	LD	5.90	0.90	30.26	15.53	10.17	5.95	73.92	1.44	56.84
i	3	LM	6.60	2.30	36.56	14.05	11.12	5.89	74.46	0.92	56.84
i	3	LD	8.50	1.30	30.27	14.22	19.76	5.22	76.41	0.48	57.32
i	3	LM	5.10	3.40	40.15	16.14	13.27	5.45	76.43	0.64	57.32
i	3	LD	7.30	0.90	33.28	15.78	10.61	5.41	74.69	1.69	53.36
i	3	LM	4.90	1.60	43.02	16.74	15.99	5.61	75.79	0.64	53.36
i	3	LD	9.70	1.10	31.73	14.19	10.61	5.86	73.94	1.90	49.49
i	3	LM	4.40	1.70	38.97	19.47	16.52	5.80	67.65	0.62	49.49


;
proc glm data = cross;

model tern_co tern_cr col_L col_a col_b pH hume intra_fat rendi = sexo edad musc;
class = sexo, edad, musc;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And here's the log:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         
 74         
 75         
 76         data cross;
 77         infile datalines dlm='09'x;
 78         input sexo$ edad$ musc$ tern_co tern_cr col_L col_a col_b pH hume intra_fat rendi;
 79         
 80         cards;
 
 NOTE: LOST CARD.
 RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     
 143        ;
 sexo=  edad=  musc=  tern_co=. tern_cr=. col_L=. col_a=. col_b=. pH=. hume=. intra_fat=. rendi=. _ERROR_=1 _N_=61
 NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
 NOTE: The data set WORK.CROSS has 60 observations and 12 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.01 seconds
       cpu time            0.02 seconds
       
 
 143        ;
 144        proc glm data = cross;
 145        
 146        model tern_co tern_cr col_L col_a col_b pH hume intra_fat rendi = sexo edad musc;
 ERROR: Variable sexo should be either numeric or specified in the CLASS statement.
 NOTE: The previous statement has been deleted.
 147        class = sexo, edad, musc;
            _____
            180
 NOTE: The previous statement has been deleted.
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 148        
 149        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 162        &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Mar 2019 20:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression/m-p/542932#M27195</guid>
      <dc:creator>ValeriaRodz</dc:creator>
      <dc:date>2019-03-13T20:07:20Z</dc:date>
    </item>
  </channel>
</rss>

