<?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: How to obtain coefficients from a regression? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/847033#M334885</link>
    <description>&lt;P&gt;I believe this works ... however, I cannot test it, so that is your job&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=master;
ods output &lt;SPAN&gt;ParameterEstimates&lt;/SPAN&gt;=coefficients;
 class fAUDITOR_FKEY MSA sic fyear;
 model audfee = fAUDITOR_FKEY others/ solution;
output out=model r=residual;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Nov 2022 12:42:46 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-11-30T12:42:46Z</dc:date>
    <item>
      <title>How to obtain coefficients from a regression?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/846989#M334855</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;proc surveyreg data=master;
 class fAUDITOR_FKEY MSA sic fyear;
 model audfee = fAUDITOR_FKEY others/ solution;
output out=model r=residual;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;fAUDITOR_FKEY is a set of categorical variables. There are more than 100 different auditors in my observations and I want to obtain each coefficient for each auditor. Of course, I can obtain them in the result, but I want to have them as I have residuals by the "r=residual" code. Does SAS have a code for doing that? I looked for that, and it seems SAS has, but I did not find the right one...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 07:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/846989#M334855</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2022-11-30T07:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain coefficients from a regression?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/847033#M334885</link>
      <description>&lt;P&gt;I believe this works ... however, I cannot test it, so that is your job&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=master;
ods output &lt;SPAN&gt;ParameterEstimates&lt;/SPAN&gt;=coefficients;
 class fAUDITOR_FKEY MSA sic fyear;
 model audfee = fAUDITOR_FKEY others/ solution;
output out=model r=residual;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 12:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/847033#M334885</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-30T12:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain coefficients from a regression?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/847223#M334970</link>
      <description>&lt;P&gt;This works definitely.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to have coefficients matched with observations, but I can do that part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 10:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/847223#M334970</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2022-12-01T10:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain coefficients from a regression?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/847237#M334974</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270067"&gt;@JKCho&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to have coefficients matched with observations, but I can do that part.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you implying that you want to use the coefficients to generate predicted values by saying "coefficients matched with observation"? PROC SURVEYREG will compute predicted values for you.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 12:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-coefficients-from-a-regression/m-p/847237#M334974</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-01T12:25:09Z</dc:date>
    </item>
  </channel>
</rss>

