<?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 GLIMIMIX: Issue specifying control level for pdiff in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951892#M47624</link>
    <description>&lt;P&gt;If you have a format attached with these two variables(&amp;nbsp;Trt_Amend_App&amp;nbsp; Trt_CC ) ,you need to use their FORMATTED value ,not internal value.&lt;/P&gt;
&lt;P&gt;Using PROC FREQ to check its value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data=df_y1;
table Trt_Amend_App * Trt_CC ;
run;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Nov 2024 06:19:00 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-11-26T06:19:00Z</dc:date>
    <item>
      <title>PROC GLIMIMIX: Issue specifying control level for pdiff</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951889#M47622</link>
      <description>&lt;P&gt;Using a mixed effects model in PROC GLIMMIX, I would like to determine the differences between lsmeans with a chosen control.&amp;nbsp; I'm trying to mimic the method outlined in the documentation to the best of my ability, but I get an error indicating "cannot find control level".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc glimmix data=df_y1 plots=studentpanel;
	class Trt_Amend_App Trt_CC ID_S Block;
	model Yield_Grain_Mg_ha = Trt_Amend_App | Trt_CC | ID_S / ddfm=kr2;
	random Block(ID_S);
    lsmeans Trt_Amend_App * Trt_CC / pdiff=control('7' '2') adjust=dunnett;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The control corresponds to the 7th level of factor Trt_Amend_App and the 2nd level of Trt_CC.&amp;nbsp; Any help clarifying this issue would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 03:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951889#M47622</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2024-11-26T03:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMIMIX: Issue specifying control level for pdiff</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951892#M47624</link>
      <description>&lt;P&gt;If you have a format attached with these two variables(&amp;nbsp;Trt_Amend_App&amp;nbsp; Trt_CC ) ,you need to use their FORMATTED value ,not internal value.&lt;/P&gt;
&lt;P&gt;Using PROC FREQ to check its value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data=df_y1;
table Trt_Amend_App * Trt_CC ;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 06:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951892#M47624</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-26T06:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMIMIX: Issue specifying control level for pdiff</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951907#M47625</link>
      <description>&lt;P&gt;Edited: There was an error in my factor level strings causing the issue.&amp;nbsp; The code below works otherwise.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hey Ksharp - thank you for your response.&lt;BR /&gt;&lt;BR /&gt;From running PROC FREQ, I see that I can easily see the level values, but I'm not sure exactly what you mean that I need to use their 'FORMATTED values'.&amp;nbsp; PROC CONTENTS indicates that these factors are all type "char".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code returned the same error, "cannot find control level for effect...":&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;    lsmeans Trt_Amend_App * Trt_CC / pdiff=control('Control-Fert-nan' 'no_CC') adjust=dunnett;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 14:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951907#M47625</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2024-11-26T14:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMIMIX: Issue specifying control level for pdiff</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951909#M47626</link>
      <description>&lt;P&gt;You need to show us some output.&lt;BR /&gt;&lt;BR /&gt;Show the result of LSMEANS without Control;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;lsmeans Trt_Amend_App * Trt_CC /&amp;nbsp;pdiff;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 14:01:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951909#M47626</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2024-11-26T14:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMIMIX: Issue specifying control level for pdiff</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951919#M47628</link>
      <description>&lt;P&gt;Hey now that I'm looking at it again, I appear to have made a error with my strings!&amp;nbsp; So the problem is solved now.&amp;nbsp; Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 14:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/951919#M47628</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2024-11-26T14:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMIMIX: Issue specifying control level for pdiff</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/952015#M47630</link>
      <description>E.X.&lt;BR /&gt;proc format;&lt;BR /&gt;value fmt&lt;BR /&gt;1='X'&lt;BR /&gt;2='Y'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;and the value of Trt_CC variable is 1,2&lt;BR /&gt;Therefore,&lt;BR /&gt;'X' ,'Y' is the FORMATTED values.&lt;BR /&gt;1,2 is the internal values.</description>
      <pubDate>Wed, 27 Nov 2024 01:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMIMIX-Issue-specifying-control-level-for-pdiff/m-p/952015#M47630</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-27T01:14:21Z</dc:date>
    </item>
  </channel>
</rss>

