<?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: Code isn't working just right in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953455#M42849</link>
    <description>&lt;P&gt;Show us what you are looking at that makes you say it isn't right. Explain what you expect to see that would be "right".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, no need to compute dummy 0/1 variables like you did, you can perform this regression in PROC GLM without creating dummy 0/1 variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=capsizedd;
class capsize;
model return=capsize/solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 20:24:31 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-12-12T20:24:31Z</dc:date>
    <item>
      <title>Code isn't working just right</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953454#M42848</link>
      <description>&lt;P&gt;code is working as it says there is no errors however it capsize_micro is showing a parameter estimate of 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compare return to market cap size - mega, large, mid, small, and micro&lt;/P&gt;&lt;P&gt;proc import datafile="/home/u63997444/ECON 348/Master use good 4.csv"&lt;BR /&gt;out=work.finaluse&lt;BR /&gt;dbms=csv&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data capsizedd;&lt;BR /&gt;set finaluse;&lt;/P&gt;&lt;P&gt;/* Assigning capsize based on Firm */&lt;BR /&gt;if 1 &amp;lt;= Firm &amp;lt;= 10 then capsize = "mega";&lt;BR /&gt;else if 11 &amp;lt;= Firm &amp;lt;= 20 then capsize = "larg";&lt;BR /&gt;else if 21 &amp;lt;= Firm &amp;lt;= 30 then capsize = "mid";&lt;BR /&gt;else if 31 &amp;lt;= Firm &amp;lt;= 40 then capsize = "smal";&lt;BR /&gt;else if 41 &amp;lt;= Firm &amp;lt;= 50 then capsize = "micr";&lt;BR /&gt;else capsize = "unknown"; /* Default case for capsize if Firm is not in expected range */&lt;BR /&gt;&lt;BR /&gt;/* Convert capsize into numeric dummy variables for regression */&lt;BR /&gt;if capsize = "mega" then capsize_mega = 1; else capsize_mega = 0;&lt;BR /&gt;if capsize = "larg" then capsize_large = 1; else capsize_large = 0;&lt;BR /&gt;if capsize = "mid" then capsize_mid = 1; else capsize_mid = 0;&lt;BR /&gt;if capsize = "smal" then capsize_small = 1; else capsize_small = 0;&lt;BR /&gt;if capsize = "micr" then capsize_micro = 1; else capsize_micro = 0;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc reg data=capsizedd;&lt;BR /&gt;model return=capsize_mega capsize_large capsize_mid capsize_small capsize_micro;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 19:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953454#M42848</guid>
      <dc:creator>acleamon</dc:creator>
      <dc:date>2024-12-12T19:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Code isn't working just right</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953455#M42849</link>
      <description>&lt;P&gt;Show us what you are looking at that makes you say it isn't right. Explain what you expect to see that would be "right".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, no need to compute dummy 0/1 variables like you did, you can perform this regression in PROC GLM without creating dummy 0/1 variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=capsizedd;
class capsize;
model return=capsize/solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 20:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953455#M42849</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-12T20:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Code isn't working just right</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953457#M42851</link>
      <description>&lt;P&gt;It's because capsize micro is showing a paramter estimate of 0 which doesn't make sense given other cap sizes have parameter estimates&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 20:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953457#M42851</guid>
      <dc:creator>acleamon</dc:creator>
      <dc:date>2024-12-12T20:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Code isn't working just right</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953458#M42852</link>
      <description />
      <pubDate>Thu, 12 Dec 2024 20:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953458#M42852</guid>
      <dc:creator>acleamon</dc:creator>
      <dc:date>2024-12-12T20:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Code isn't working just right</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953469#M42854</link>
      <description>Have you read the SAS log produced when you ran your program?&lt;BR /&gt;Was there anything interesting or useful there to tell you why it is not working?&lt;BR /&gt;Can you post a copy of the entire log here please?</description>
      <pubDate>Thu, 12 Dec 2024 21:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953469#M42854</guid>
      <dc:creator>hollandnumerics</dc:creator>
      <dc:date>2024-12-12T21:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Code isn't working just right</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953472#M42856</link>
      <description>&lt;P&gt;That's how the math works and that's how SAS works, one of the categories will get an estimate of zero. And there's nothing wrong with this answer. I wrote an example to show why this is one way of handling this situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Interpreting-Multivariate-Linear-Regression-with-Categorical/m-p/591230#M28913" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/Interpreting-Multivariate-Linear-Regression-with-Categorical/m-p/591230#M28913&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/471632"&gt;@acleamon&lt;/a&gt; please give more explanation in your first post, do not assume we know what you know.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 23:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953472#M42856</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-12T23:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code isn't working just right</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953475#M42858</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/471632"&gt;@acleamon&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;When I was learning SAS I was encouraged, no threatened, that if I hadn't read the SAS Log no-one would believe that my program had failed!! The reason is that the SAS Log often has THE answers to your questions about why your SAS program has died/crashed/failed, and I should read the SAS Log first to avoid being laughed it.&lt;/P&gt;
&lt;P&gt;My experience, so don't make it yours too. Give us a look at your SAS Log!!&lt;/P&gt;
&lt;P&gt;..........Phil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 23:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Code-isn-t-working-just-right/m-p/953475#M42858</guid>
      <dc:creator>hollandnumerics</dc:creator>
      <dc:date>2024-12-12T23:11:50Z</dc:date>
    </item>
  </channel>
</rss>

