<?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: Setting/fixing/specifying Y-intercept in Proc GLM in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107772#M30010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it!! After a little bit of axes altering!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your advice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 14:11:07 GMT</pubDate>
    <dc:creator>glough</dc:creator>
    <dc:date>2012-10-26T14:11:07Z</dc:date>
    <item>
      <title>Setting/fixing/specifying Y-intercept in Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107768#M30006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how/if it was possible to specify the Y-intercept in Proc GLM?&lt;/P&gt;&lt;P&gt;I have been looking everywhere for a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to set the intercept at 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very simple model:&lt;/P&gt;&lt;P&gt;PROC GLM data; &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Class line; Model BW1= Log_CFU_Total*LINE / solution; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Any ideas/tips would be very much appreciated as I am totally stuck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: -18pt;"&gt;i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 11:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107768#M30006</guid>
      <dc:creator>glough</dc:creator>
      <dc:date>2012-10-26T11:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting/fixing/specifying Y-intercept in Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107769#M30007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would happen if you subtract 100 from every value of BW_slaughter to get the variable BW_slaughter_minus_100 and fit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GLM data; &lt;SPAN style="font-family: 'Calibri', 'sans-serif'; font-size: 11pt;"&gt;Class line; Model BW_slaughter_minus_100 = Log_CFU_Total*LINE / solution &lt;STRONG&gt;noint&lt;/STRONG&gt;; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri', 'sans-serif'; font-size: 11pt;"&gt;This is untested, but it's about the only way I see to stay in PROC GLM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri', 'sans-serif'; font-size: 11pt;"&gt;If you can code up LINE as a set of dummy variables, then PROC REG has a RESTRICT statement, where you can set intercept=100.&amp;nbsp; I get comparable results from both methods, but you should check to see which best fits your needs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri', 'sans-serif'; font-size: 11pt;"&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 11:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107769#M30007</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-10-26T11:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting/fixing/specifying Y-intercept in Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107770#M30008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your prompt response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried both methods, which sadly do not work with my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain, my BW variable is %Body weight. So, this must start at 100%, and decrease as CFU increases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Despite trying these methods, the lines still do not cross the Y-axis at the same point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything else you could recommend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 12:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107770#M30008</guid>
      <dc:creator>glough</dc:creator>
      <dc:date>2012-10-26T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting/fixing/specifying Y-intercept in Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107771#M30009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you run the GLM model I suggested, get the slopes out and plug them into an equation that looks like %BW = 100 - log_cfu_total * slope estimate for LINE (based on the NOINT model) what do you get?&amp;nbsp; All of these lines should converge on 100.&amp;nbsp; They might not look like the best fit to the data, so plotting the residuals of the constructed equation would be very informative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there is a log transform of the independent variable made me think of PROC NLIN as a valid alternative.&amp;nbsp; Again you would need to code the LINE variable (0,1 type coding), but then a model statement that looked like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;model BW1=100 - (beta_1*Log_CFU_Total*LINE_1 + beta_2*Log_CFU_Total*LINE_2 + ... + beta_N*Log_CFU*LINE_N);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should give you what you need (I hope).&amp;nbsp; You could get this back on the original (non-log transformed scale) if you wanted, but I would really worry about heterogeneous variances then.&amp;nbsp; In any case, NLIN doesn't require a non-linear function, and it is a good place to fit "unusual" looking equations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 12:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107771#M30009</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-10-26T12:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting/fixing/specifying Y-intercept in Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107772#M30010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it!! After a little bit of axes altering!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your advice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 14:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/107772#M30010</guid>
      <dc:creator>glough</dc:creator>
      <dc:date>2012-10-26T14:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting/fixing/specifying Y-intercept in Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/228397#M54277</link>
      <description>I am running with the PROC GLM model, I need to force the global intercept (constant value) (only vary the independent variables) into the model with the by variables. Does anyone know the SAS code to perform this operation?</description>
      <pubDate>Mon, 05 Oct 2015 10:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/228397#M54277</guid>
      <dc:creator>Somashekhar</dc:creator>
      <dc:date>2015-10-05T10:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting/fixing/specifying Y-intercept in Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/228955#M54355</link>
      <description>&lt;P&gt;If you have a known fixed value for the intercept, you can subtract that number from every Y value, and then fit a model with the NOINT option. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denhm&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 18:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/228955#M54355</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-10-07T18:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setting/fixing/specifying Y-intercept in Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/229535#M54403</link>
      <description>&lt;P&gt;Also, appending a question to a thread that has been marked "Answered" will often result in people by-passing your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 12:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Setting-fixing-specifying-Y-intercept-in-Proc-GLM/m-p/229535#M54403</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-10-12T12:40:22Z</dc:date>
    </item>
  </channel>
</rss>

