<?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: RANDOM EFFECT FAILS IN PROC MIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540804#M27123</link>
    <description>&lt;P&gt;Please edit your question and add the&amp;nbsp;error message in the SAS log.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2019 15:24:34 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-03-06T15:24:34Z</dc:date>
    <item>
      <title>RANDOM EFFECT FAILS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540802#M27122</link>
      <description>&lt;P&gt;HI all&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know why random effect didn't work in this proc mixed code,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I&amp;nbsp;run this code without the random effect it working perfectly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you think the main issue in this case?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what the log saying:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: ODS graphics with more than 5000 points have been suppressed. Use the PLOTS(MAXPOINTS= )&lt;BR /&gt;option in the PROC MIXED statement to change or override the cutoff.&lt;BR /&gt;NOTE: PROCEDURE MIXED used (Total process time):&lt;BR /&gt;real time 5.20 seconds&lt;BR /&gt;cpu time 5.12 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1568! quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=have;
	class  pr mfd ca_month CAYEAR CA_EASE city ;
	model A =  pr mfd mfd*pr ca_month cayear ca_ease CITY;
	lsmeans  pr mfd  mfd*pr/pdiff adjust=tukey;
	random herd;
	lsmestimate MFD*pr 
	'MFD 1 v NMFD 1' 1 -1,
	'MFD 2 v NMFD 2' 0 0 1 -1,
	'MFD 3 v NMFD 3' 0 0 0 0 1 -1,
	'MFD 4 v NMFD 4' 0 0 0 0 0 0 1 -1 /adjust=bon;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540802#M27122</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2019-03-06T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: RANDOM EFFECT FAILS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540804#M27123</link>
      <description>&lt;P&gt;Please edit your question and add the&amp;nbsp;error message in the SAS log.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540804#M27123</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-03-06T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: RANDOM EFFECT FAILS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540925#M27129</link>
      <description>&lt;P&gt;What makes you think that the "random effect didn't work"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try adding HERD to the CLASS statement. If the number of herds is large, then you can use HERD in the RANDOM statement as a continuous variable, but the dataset must be sorted appropriately by herd.&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 21:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540925#M27129</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2019-03-06T21:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: RANDOM EFFECT FAILS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540977#M27131</link>
      <description>&lt;P&gt;That's the whole log? There are no errors. The WARNING just says that the ODS graphics will not automatically create scatter plots because the data contains more than 5000 points (the default).&lt;/P&gt;
&lt;P&gt;You can modify the PROC MIXED statement to get the plots:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mixed data=have plots(maxpoints=none)=ALL;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 00:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/RANDOM-EFFECT-FAILS-IN-PROC-MIXED/m-p/540977#M27131</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-03-07T00:42:27Z</dc:date>
    </item>
  </channel>
</rss>

