<?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: Convert code from proc Logistic to NLIN or NLIMIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595862#M29030</link>
    <description>FYI - I updated your subject line to be more descriptive than help. Help is vague and doesn't convey anything about the subject line. &lt;BR /&gt;I also edited your post to have the code in code blocks which helps with legibility and makes it easier to copy/paste to run your code. &lt;BR /&gt;I also moved your post to the stats forum. &lt;BR /&gt;Note that no one can run your code because you have not provided sample data, which means you'll need to wait for someone with expertise in all three procs. If you provide test data, others can attempt to help. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Oct 2019 19:56:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-10-11T19:56:17Z</dc:date>
    <item>
      <title>Convert code from proc Logistic to NLIN or NLIMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595852#M29029</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please I would love to run this logistic procedure with proc nlin or proc nlimixed, any ideas please? the codes I tried are below. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data = rsm1;
model edema (event="1") = DoseA DoseT DoseA*DoseT DoseA*DoseA DoseT*DoseT/link = probit;
output out=pred p=prob;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;**This did not work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlmixed data = rsm1; call streaminit(123456);
parms beta0=1 beta1=1 beta2=1 beta11=1 beta12=1 beta22=1 s2=1;
y2 = (beta0 + beta1*DoseA + beta2*DoseT + beta11*DoseA*DoseA
+ beta22*DoseT*DoseT + beta12*DoseA*DoseT);
p = exp(y2)/(1+exp(y2));
model Edema~binary(p);
predict y2 out=y2;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;**I'm not getting same results with this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlin data =rsm1 method=newton;
parms beta0=1 beta1=1 beta2=1 beta11=1 beta12=1 beta22=1;
y2 = (beta0 + beta1*DoseA + beta2*DoseT + beta11*DoseA*DoseA
+ beta22*DoseT*DoseT + beta12*DoseA*DoseT);
p = probnorm(edema);
if (edema = 1) then p = 1-p;
model p=y2;
output out=p p=predict;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 19:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595852#M29029</guid>
      <dc:creator>ojibous</dc:creator>
      <dc:date>2019-10-11T19:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert code from proc Logistic to NLIN or NLIMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595862#M29030</link>
      <description>FYI - I updated your subject line to be more descriptive than help. Help is vague and doesn't convey anything about the subject line. &lt;BR /&gt;I also edited your post to have the code in code blocks which helps with legibility and makes it easier to copy/paste to run your code. &lt;BR /&gt;I also moved your post to the stats forum. &lt;BR /&gt;Note that no one can run your code because you have not provided sample data, which means you'll need to wait for someone with expertise in all three procs. If you provide test data, others can attempt to help. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Oct 2019 19:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595862#M29030</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-11T19:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert code from proc Logistic to NLIN or NLIMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595896#M29032</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/294791"&gt;@ojibous&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please I would love to run this logistic procedure with proc nlin or proc nlimixed, any ideas please? &lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why? What do you gain by taking PROC LOGISTIC code and getting it to run in another PROC?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;This did not work&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;A lot more information is needed than "This did not work". What didn't work? How do you know? What do you see? Is there an error in the log, or the results are wrong, or both, or something else? Show us the wrong log or the wrong results. SHOW US.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;**I'm not getting same results with this:&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;We don't know what you mean again. SHOW US. Although, honestly, I would not expect PROC LOGSITIC and PROC NLIN to produce the exact same results, and I doubt that different results are by themselves are problem.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 21:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595896#M29032</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-11T21:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert code from proc Logistic to NLIN or NLIMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595958#M29033</link>
      <description>&lt;P&gt;Both&amp;nbsp;NLIN and NLIMIXED are for non-linear model.&lt;/P&gt;
&lt;P&gt;But Logistic model is linear model , so try PROC GLIMMIX .&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 11:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-code-from-proc-Logistic-to-NLIN-or-NLIMIXED/m-p/595958#M29033</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-12T11:32:55Z</dc:date>
    </item>
  </channel>
</rss>

