<?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: Estimating random effect when there exist none (simulation) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435102#M22945</link>
    <description>&lt;P&gt;There are cases where it is zero or very close to zero but running over 5000 replications the average is different from zero (not statistically). I wanted to get the average value as close to zero as possible, which is the true value.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2018 22:46:37 GMT</pubDate>
    <dc:creator>MetinBulus</dc:creator>
    <dc:date>2018-02-07T22:46:37Z</dc:date>
    <item>
      <title>Estimating random effect when there exist none (simulation)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435078#M22943</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;am trying to run simulation for a mixed model. For one of the variable (xij) I do not add random effect (non-varying) at&amp;nbsp;the data generation process but try to estimate the random effect during the estimation process. The expectation is that estimated variance component should be zero but it is not. This is the case even group-mean centering the variable. Is there an obvious explanation for this? I am not familiar with the estimation procedure of the PROC MIXED. The data generating mechanism and the model is below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* 	Level-1 Model
*   	yij = beta0j + beta1j*xij + .50*vij + rij
* 	Level-2 Model
*   	beta0j = gamma00 + gamma01*tj + u0j
*   	beta1j = gamma10 + gamma11*tj&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to estimate random term for xij with PROC MIXED as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=SimData2 covtest NOCLPRINT method = REML; 
		class SchID;
		model yij = xij  / ddfm = BW solution;
		random INTERCEPT xij /subject = SchID  type=UN g gcorr;
		ods output CovParms=CovParms1 SolutionF=SolutionF1;
		by SampleID;
	run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please help,&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 21:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435078#M22943</guid>
      <dc:creator>MetinBulus</dc:creator>
      <dc:date>2018-02-07T21:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating random effect when there exist none (simulation)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435099#M22944</link>
      <description>&lt;P&gt;Perhaps this is just a difference in wording, but I would not agree with this statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The expectation is that estimated variance component should be zero but it is not&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would say there that the estimated variance component should &lt;EM&gt;not be statistically different&lt;/EM&gt; than zero, 95% of the time (assuming you do the test with alpha = 0.05 and the errors are iid normal)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in an individual run a non-zero estimated variance component does not bother me.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 22:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435099#M22944</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-07T22:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating random effect when there exist none (simulation)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435102#M22945</link>
      <description>&lt;P&gt;There are cases where it is zero or very close to zero but running over 5000 replications the average is different from zero (not statistically). I wanted to get the average value as close to zero as possible, which is the true value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 22:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435102#M22945</guid>
      <dc:creator>MetinBulus</dc:creator>
      <dc:date>2018-02-07T22:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating random effect when there exist none (simulation)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435103#M22946</link>
      <description>&lt;P&gt;But the average doesn't have to be zero, no matter how many runs you make (unless you can do an infinite number of runs).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The real test is as I described, that the values are not statistically different than zero, 95% of the time.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 22:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435103#M22946</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-07T22:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating random effect when there exist none (simulation)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435105#M22947</link>
      <description>&lt;P&gt;Thank you Page, I think your answer helped me realize what I might be doing wrong. I am forcing negative variance estimates to be zero, perhaps that is why the average is not zero.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 22:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-random-effect-when-there-exist-none-simulation/m-p/435105#M22947</guid>
      <dc:creator>MetinBulus</dc:creator>
      <dc:date>2018-02-07T22:58:40Z</dc:date>
    </item>
  </channel>
</rss>

