<?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 plot the model that obtain by proc nlmixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/plot-the-model-that-obtain-by-proc-nlmixed/m-p/787288#M38595</link>
    <description>&lt;P&gt;Hi every one&lt;/P&gt;&lt;P&gt;please help me with my problem.&lt;/P&gt;&lt;P&gt;I have the model that estimated by proc nlmixed then i need to plot the actual and predicted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile='C:\Users\Abbas Arkawazi\Desktop\test.xlsx'&lt;BR /&gt;DBMS =xlsx Out=test;&lt;BR /&gt;run;&lt;BR /&gt;proc nlmixed data=test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; parms b0= 10 b1=2&amp;nbsp; b2=.5&amp;nbsp;&amp;nbsp; b3= 1&amp;nbsp; a=2 b=1&amp;nbsp; s=&amp;nbsp; 150 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; m = b0+(b1*age)+(b2*gender)+(b3*creatin);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; y=urea;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if status_u=1 then f=((a*b)*((1-exp(-exp((y-m)/s)))**(a-1))*((1+((exp(exp((y-m)/s))-1)**(a)))**(-(b+1)))) /(s*exp((-a*exp((y-m)/s))-((y-m)/s))) ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; else f= (1+(((1-exp(-exp((y-m)/s)))/(exp(-exp((y-m)/s))))**a))**-b ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ll=log(f);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; model y ~ general(ll);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;please help me to plot the estimated model&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank u very much&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 21:13:56 GMT</pubDate>
    <dc:creator>Abbas_Arkawazi</dc:creator>
    <dc:date>2021-12-23T21:13:56Z</dc:date>
    <item>
      <title>plot the model that obtain by proc nlmixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-the-model-that-obtain-by-proc-nlmixed/m-p/787288#M38595</link>
      <description>&lt;P&gt;Hi every one&lt;/P&gt;&lt;P&gt;please help me with my problem.&lt;/P&gt;&lt;P&gt;I have the model that estimated by proc nlmixed then i need to plot the actual and predicted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile='C:\Users\Abbas Arkawazi\Desktop\test.xlsx'&lt;BR /&gt;DBMS =xlsx Out=test;&lt;BR /&gt;run;&lt;BR /&gt;proc nlmixed data=test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; parms b0= 10 b1=2&amp;nbsp; b2=.5&amp;nbsp;&amp;nbsp; b3= 1&amp;nbsp; a=2 b=1&amp;nbsp; s=&amp;nbsp; 150 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; m = b0+(b1*age)+(b2*gender)+(b3*creatin);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; y=urea;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if status_u=1 then f=((a*b)*((1-exp(-exp((y-m)/s)))**(a-1))*((1+((exp(exp((y-m)/s))-1)**(a)))**(-(b+1)))) /(s*exp((-a*exp((y-m)/s))-((y-m)/s))) ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; else f= (1+(((1-exp(-exp((y-m)/s)))/(exp(-exp((y-m)/s))))**a))**-b ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ll=log(f);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; model y ~ general(ll);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;please help me to plot the estimated model&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank u very much&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 21:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-the-model-that-obtain-by-proc-nlmixed/m-p/787288#M38595</guid>
      <dc:creator>Abbas_Arkawazi</dc:creator>
      <dc:date>2021-12-23T21:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: plot the model that obtain by proc nlmixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-the-model-that-obtain-by-proc-nlmixed/m-p/787289#M38596</link>
      <description>You would first add the PREDICT statement to generate predictions but I'm not sure exactly how you'd specify it for your model. And then use the OUT= option  on the PREDICT statement to save the outputs.&lt;BR /&gt;&lt;BR /&gt; You can then use PROC SGPLOT to graph the predicted versus actuals. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2021 21:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-the-model-that-obtain-by-proc-nlmixed/m-p/787289#M38596</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-23T21:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: plot the model that obtain by proc nlmixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-the-model-that-obtain-by-proc-nlmixed/m-p/787347#M38597</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;is right. Use the PREDICT statement to generate your predicted values. If M is your mean response, then PREDICT M will get you that predicted value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have 3 covariates in the model though. I am not sure what you will want to use as the X axis for your plot. Perhaps group by GENDER and plot either CREATIN or AGE for a specific value of AGE or CREATIN.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PREDICT statement will provide predicted values for the observations in your DATA= data set, the input to PROC NLMIXED. To create predicted values for additional observations, you will need to write your own scoring code in a SAS Data step. Your equation for M in your PROC NLMIXED code is your scoring equation. Substitute the parameter estimates from NLMIXED and off you go.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 16:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-the-model-that-obtain-by-proc-nlmixed/m-p/787347#M38597</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2021-12-24T16:15:23Z</dc:date>
    </item>
  </channel>
</rss>

