<?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 Help needed for Proc NLMIXED!!! in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-for-Proc-NLMIXED/m-p/52959#M14593</link>
    <description>Hi, I have some problems with Proc NLMIXED. I have coded a two part model with general likelihood. But I am wondering if there is a simple way to deal with categorical variables in Proc NLMIXED? Just like the CLASS statement in other Proc. &lt;BR /&gt;
&lt;BR /&gt;
Also I wish to do model selection in the future. But how can I code a macro to do automatic model selection?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc nlmixed data= “…” TECH=dbldog;&lt;BR /&gt;
&lt;BR /&gt;
	parms b00=0 b10=0 b20=0 b30=0 b40=0 b0=0 b1=0 b2=0 b3=0 b4=0 sigma=1 delta=-2;&lt;BR /&gt;
	Z1=b0 + b1*x1 + b2*x2 + b3*x3 + b4*x4;&lt;BR /&gt;
	Z0=b00 + b10*x1 + b20*x2 + b30*x3 + b40*x4;	temp=SQRT(sigma**2+delta**2);&lt;BR /&gt;
	P0=CDF('normal',-Z0);&lt;BR /&gt;
	if y=0 then P=P0;&lt;BR /&gt;
	else if y^=0 then P=(1-P0)*2/temp*PDF('normal',(y-Z1)/temp)*CDF('normal',delta/sigma*(y-Z1)/temp); &lt;BR /&gt;
	ll=log(P);&lt;BR /&gt;
	model y~GENERAL(ll);&lt;BR /&gt;
	bounds sigma&amp;gt;0;&lt;BR /&gt;
run;</description>
    <pubDate>Thu, 09 Oct 2008 04:34:45 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-09T04:34:45Z</dc:date>
    <item>
      <title>Help needed for Proc NLMIXED!!!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-needed-for-Proc-NLMIXED/m-p/52959#M14593</link>
      <description>Hi, I have some problems with Proc NLMIXED. I have coded a two part model with general likelihood. But I am wondering if there is a simple way to deal with categorical variables in Proc NLMIXED? Just like the CLASS statement in other Proc. &lt;BR /&gt;
&lt;BR /&gt;
Also I wish to do model selection in the future. But how can I code a macro to do automatic model selection?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc nlmixed data= “…” TECH=dbldog;&lt;BR /&gt;
&lt;BR /&gt;
	parms b00=0 b10=0 b20=0 b30=0 b40=0 b0=0 b1=0 b2=0 b3=0 b4=0 sigma=1 delta=-2;&lt;BR /&gt;
	Z1=b0 + b1*x1 + b2*x2 + b3*x3 + b4*x4;&lt;BR /&gt;
	Z0=b00 + b10*x1 + b20*x2 + b30*x3 + b40*x4;	temp=SQRT(sigma**2+delta**2);&lt;BR /&gt;
	P0=CDF('normal',-Z0);&lt;BR /&gt;
	if y=0 then P=P0;&lt;BR /&gt;
	else if y^=0 then P=(1-P0)*2/temp*PDF('normal',(y-Z1)/temp)*CDF('normal',delta/sigma*(y-Z1)/temp); &lt;BR /&gt;
	ll=log(P);&lt;BR /&gt;
	model y~GENERAL(ll);&lt;BR /&gt;
	bounds sigma&amp;gt;0;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 09 Oct 2008 04:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-needed-for-Proc-NLMIXED/m-p/52959#M14593</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-09T04:34:45Z</dc:date>
    </item>
  </channel>
</rss>

