<?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: proc glimmix multinomial syntax error in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-multinomial-syntax-error/m-p/780467#M38311</link>
    <description>&lt;P&gt;I recommend looking into using LSMESTIMATE statements rather than ESTIMATE statements - the syntax is much more compact and intuitive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 15:15:21 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-11-16T15:15:21Z</dc:date>
    <item>
      <title>proc glimmix multinomial syntax error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-multinomial-syntax-error/m-p/780158#M38289</link>
      <description>&lt;P&gt;I am relatively new to performing glimmix procedures, and I am wanting to carry out a multinomial analysis for the following dataset, and perform a power analysis. I am receiving a syntax error shown below. I've attached my code for reference. any debugging would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mlien89_0-1636927888893.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65674i1DD5040CF26A657D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mlien89_0-1636927888893.png" alt="mlien89_0-1636927888893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data idc;
input line $ seeding @@;
fields=15;
n=40;
do idc='none','mild','mod','sevr';
	input p @@;
	do field_id=1 to fields;
        ptst=((n*p)/100);
		mu=round(ptst,1.0);
		output;
	end;
end;
datalines;
S 25 5 17 25 53 
S 50 8 13 32 48
S 150 14 22 19 45
R 25 8 60 21 11 
R 50 15 64 14 7 
R 150 18 70 6 6 
;
proc print;
run;
proc glimmix data=idc;
class line seeding field_id;
freq mu;
model idc (order=data)=line|seeding/link=cumlogit htype=1,3 dist=multinomial s;
random intercept/field_id;
ods output tests3=a;
parms (.12)/hold=1;
  estimate 'No IDC line=S seeding=25' intercept 1 line 0 1 seeding 1 0 0 line*seeding 0 0 0 1 0 0,
           'No IDC line=S seeding=50' intercept 1 line 0 1 seeding 0 1 0 line*seeding 0 0 0 0 1 0, 
           'No IDC line=S seeding=150' intercept 1 line 0 1 seeding 0 0 1 line*seeding 0 0 0 0 0 1, 
           'No IDC line=R seeding=25' intercept 1 line 1 0 seeding 1 0 0 line*seeding 1 0 0 0 0 0,
           'No IDC line=R seeding=50' intercept 1 line 1 0 seeding 0 1 0 line*seeding 0 1 0 0 0 0, 
           'No IDC line=R seeding=150' intercept 1 line 1 0 seeding 0 0 1 line*seeding 0 0 1 0 0 0, 
           / ilink;
  estimate 'No+Mild IDC line=S seeding=25' intercept 0 1 line 0 1 seeding 1 0 0 line*seeding 0 0 0 1 0 0,
           'No+Mild IDC line=S seeding=50' intercept 0 1 line 0 1 seeding 0 1 0 line*seeding 0 0 0 0 1 0, 
           'No+Mild IDC line=S seeding=150' intercept 0 1 line 0 1 seeding 0 0 1 line*seeding 0 0 0 0 0 1, 
           'No+Mild IDC line=R seeding=25' intercept 0 1 line 1 0 seeding 1 0 0 line*seeding 1 0 0 0 0 0,
           'No+Mild IDC line=R seeding=50' intercept 0 1 line 1 0 seeding 0 1 0 line*seeding 0 1 0 0 0 0, 
           'No+Mild IDC line=R seeding=150' intercept 0 1 line 1 0 seeding 0 0 1 line*seeding 0 0 1 0 0 0, 
           / ilink;
  estimate 'yg1+2+4 t=40' intercept 0 0 1 trt 1 0,
           'yg1+2+4 t=80' intercept 0 0 1 trt 0 1 0, 
           'yg1+2+4 t=100' intercept 0 0 1 trt 0 0 1 0,
           'yg1+2+4 t=120' intercept 0 0 1 trt 0 0 0 1 0,
           'yg1+2+4 t=160' intercept 0 0 1 trt 0 0 0 0 1 / ilink;
  estimate 'yg1+2+4+5 t=40' intercept 0 0 0 1 trt 1 0,
           'yg1+2+4+5 t=80' intercept 0 0 0 1 trt 0 1 0, 
           'yg1+2+4+5 t=100' intercept 0 0 0 1 trt 0 0 1 0,
           'yg1+2+4+5 t=120' intercept 0 0 0 1 trt 0 0 0 1 0,
           'yg1+2+4+5 t=160' intercept 0 0 0 1 trt 0 0 0 0 1 / ilink;
run;
data power;
set a;
alpha=0.05;
fcrit=finv(1-alpha, numdf, dendf, 0);
power=1-probf(fcrit, numdf, dendf, numdf*fvalue);
run;
proc print;
run;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 22:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-multinomial-syntax-error/m-p/780158#M38289</guid>
      <dc:creator>mlien89</dc:creator>
      <dc:date>2021-11-14T22:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix multinomial syntax error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-multinomial-syntax-error/m-p/780197#M38290</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;[ I moved this post to Statistical Procedures board ]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without even studying your model, I can already say you cannot specify a variable-name as an option behind the forward slash (/) in the RANDOM statement.&lt;/P&gt;
&lt;P&gt;If this variable of yours is identifying the subjects in the model, then specify :&lt;/P&gt;
&lt;P&gt;SUBJECT= (Identifies the subjects in the model)&lt;/P&gt;
&lt;P&gt;followed by your variable name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 09:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-multinomial-syntax-error/m-p/780197#M38290</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-15T09:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix multinomial syntax error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-multinomial-syntax-error/m-p/780467#M38311</link>
      <description>&lt;P&gt;I recommend looking into using LSMESTIMATE statements rather than ESTIMATE statements - the syntax is much more compact and intuitive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 15:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-multinomial-syntax-error/m-p/780467#M38311</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-11-16T15:15:21Z</dc:date>
    </item>
  </channel>
</rss>

