<?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: Heterogeneity test for multinomial logistic regression in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59032#M16601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; Proc, class, and model statements.&amp;nbsp; Thanks for catching that cut and paste error, PG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to deduce that the appropriate code was what you provided: test intercept: intercept1=intercept2=intercept3 but I'm not sure how I can re-code my variables so that SAS recognizes that 'intercept1' is, say the intercept of hs_q01 for EBF duration 1 and intercept 2 is the intercept of hs_q01 EBF duration 2.&amp;nbsp; I'm getting the error message that the variable is not in my model, which is what I expected.&amp;nbsp; Is this because i've used class statements instead of dummy variables?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking of outputting my intercepts into another database and then re-running the code, but my SAS/statistics knowledge is a bit lacking.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2012 00:45:12 GMT</pubDate>
    <dc:creator>KMack</dc:creator>
    <dc:date>2012-04-10T00:45:12Z</dc:date>
    <item>
      <title>Heterogeneity test for multinomial logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59030#M16599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering how I can test for a trend across outcome categories in multinomial logistic regression? I have four different durations of breastfeeding and several different predictor variables and I would like a p-value for trend for each predictor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;surveylogistic&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=final;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; ebf (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'5.5-6.5'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;)&amp;nbsp; hs_q01 (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;Ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'english OR FRENCH or other'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;) supplement (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'yes'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;)prenat (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;Ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'lo'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;) rigon (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'two'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; ebf=supplement/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=glogit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;weight weight_ch;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;strata community;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;I've tried a test statement, but I can't seem to get the code to run.&amp;nbsp; Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 20:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59030#M16599</guid>
      <dc:creator>KMack</dc:creator>
      <dc:date>2012-04-09T20:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Heterogeneity test for multinomial logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59031#M16600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K, your code didn't copy too well (known problem...). I'm assuming proc, class and model statements. From the doc, seems like the test statement should read :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hetero: test intercept = intercept1 = intercept2 = intercept3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What message do you get?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 23:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59031#M16600</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-09T23:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Heterogeneity test for multinomial logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59032#M16601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; Proc, class, and model statements.&amp;nbsp; Thanks for catching that cut and paste error, PG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to deduce that the appropriate code was what you provided: test intercept: intercept1=intercept2=intercept3 but I'm not sure how I can re-code my variables so that SAS recognizes that 'intercept1' is, say the intercept of hs_q01 for EBF duration 1 and intercept 2 is the intercept of hs_q01 EBF duration 2.&amp;nbsp; I'm getting the error message that the variable is not in my model, which is what I expected.&amp;nbsp; Is this because i've used class statements instead of dummy variables?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking of outputting my intercepts into another database and then re-running the code, but my SAS/statistics knowledge is a bit lacking.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 00:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59032#M16601</guid>
      <dc:creator>KMack</dc:creator>
      <dc:date>2012-04-10T00:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Heterogeneity test for multinomial logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59033#M16602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K, I am not clear as to what you want exactly. Your model statement relates &lt;STRONG&gt;ebf&lt;/STRONG&gt; to &lt;STRONG&gt;supplement&lt;/STRONG&gt; only. Your other variables&lt;STRONG&gt; hs_q01&lt;/STRONG&gt;, &lt;STRONG&gt;prenat&lt;/STRONG&gt; and&lt;STRONG&gt; rigon&lt;/STRONG&gt; are NOT in the model. Mentionning them in a CLASS statement merely informs SAS of their categorical nature and reference level. It does not include them in your model. In the test statement I proposed (that's an equal sign after intercept) there is one intercept for each level of your outcome variable. Try it also without intercept4, I'm not sure its needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 01:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59033#M16602</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-10T01:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Heterogeneity test for multinomial logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59034#M16603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PG.&amp;nbsp; That was careless - of course hs_q01 isn't in the model I pasted.&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you saying my code should look like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveylogistic;&lt;/P&gt;&lt;P&gt;class ebf (ref='1')&amp;nbsp; hs_q01 (ref='1');&lt;/P&gt;&lt;P&gt;model ebf=hs_q01/glogit;&lt;/P&gt;&lt;P&gt;weight weight_ch;&lt;/P&gt;&lt;P&gt;strata community;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test intercept1=intercept2&amp;nbsp;&amp;nbsp; OR&lt;/P&gt;&lt;P&gt;test hs_q011=hs_q012?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't running.&amp;nbsp; I don't have an 'intercept1, 2 etc' or a hs_q011 in my model that I've defined.&amp;nbsp; Right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 14:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59034#M16603</guid>
      <dc:creator>KMack</dc:creator>
      <dc:date>2012-04-10T14:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Heterogeneity test for multinomial logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59035#M16604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a simplified program first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: courier new,courier;"&gt;proc surveylogistic data=final;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: courier new,courier;"&gt;class hs_q01(ref='1');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: courier new,courier;"&gt;model ebf(ref='1') = hs_q01 / glogit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: courier new,courier;"&gt;test intercept = intercept1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see if that will work. We can then build from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 15:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59035#M16604</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-10T15:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Heterogeneity test for multinomial logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59036#M16605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I tried the codes today on a diferent data set and they worked!&amp;nbsp; Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 19:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Heterogeneity-test-for-multinomial-logistic-regression/m-p/59036#M16605</guid>
      <dc:creator>KMack</dc:creator>
      <dc:date>2012-05-03T19:12:53Z</dc:date>
    </item>
  </channel>
</rss>

