<?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 Power simulation for Mixed effects model in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Power-simulation-for-Mixed-effects-model/m-p/562034#M157403</link>
    <description>&lt;P&gt;I am trying to run a power simulation for a mixed effects model, however I do not have the data. &amp;nbsp;I have the variances, difference in slope to detect, corr(Y_ij, Y_ik), and sample variance of time. &amp;nbsp;The only examples I have found for power simulation are for t tests. &amp;nbsp;How do I incorporate mixed effects model? I'm using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;d=4&lt;/P&gt;&lt;P&gt;alpha=0.05&lt;/P&gt;&lt;P&gt;between variance = 5&lt;/P&gt;&lt;P&gt;within variance = 45&lt;/P&gt;&lt;P&gt;t=1, 2, 3, 4 (equally spaced)&lt;/P&gt;&lt;P&gt;n=100&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 17:57:50 GMT</pubDate>
    <dc:creator>openatom</dc:creator>
    <dc:date>2019-05-28T17:57:50Z</dc:date>
    <item>
      <title>Power simulation for Mixed effects model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-simulation-for-Mixed-effects-model/m-p/562034#M157403</link>
      <description>&lt;P&gt;I am trying to run a power simulation for a mixed effects model, however I do not have the data. &amp;nbsp;I have the variances, difference in slope to detect, corr(Y_ij, Y_ik), and sample variance of time. &amp;nbsp;The only examples I have found for power simulation are for t tests. &amp;nbsp;How do I incorporate mixed effects model? I'm using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;d=4&lt;/P&gt;&lt;P&gt;alpha=0.05&lt;/P&gt;&lt;P&gt;between variance = 5&lt;/P&gt;&lt;P&gt;within variance = 45&lt;/P&gt;&lt;P&gt;t=1, 2, 3, 4 (equally spaced)&lt;/P&gt;&lt;P&gt;n=100&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 17:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-simulation-for-Mixed-effects-model/m-p/562034#M157403</guid>
      <dc:creator>openatom</dc:creator>
      <dc:date>2019-05-28T17:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Power simulation for Mixed effects model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-simulation-for-Mixed-effects-model/m-p/562095#M157425</link>
      <description>&lt;P&gt;There is a simulation of power example for linear regression in &lt;EM&gt;Simulating Data with SAS &lt;/EM&gt;(p. 211-215). It is based on a similar simulation in Greene, W. H. (2000) &lt;EM&gt;Econometric Analysis&lt;/EM&gt;, 4th ed, Chap 15, p. 617)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, the way to conduct a power simulation is&lt;/P&gt;
&lt;P&gt;1. Figure out how to simulate data from the model&lt;/P&gt;
&lt;P&gt;2. Figure out how to use PROC MIXED to run the test that you are studying (=the test that you are investigating with the power analysis)&lt;/P&gt;
&lt;P&gt;3. To make sure you've done everything right, generate 1000 (or more) samples from the null distribution of the test. You should find that the empirical power is 1 - P(Type 2 error) = proportion of times that test rejected null hypothesis (when it shouldn't have). This should happen 5% of the time if you run the test at alpha=0.05 signif level.&lt;/P&gt;
&lt;P&gt;4. Now that the program is working, generate data that has the assumed effect. Compute the power to detect the effect.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 19:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-simulation-for-Mixed-effects-model/m-p/562095#M157425</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-05-28T19:59:35Z</dc:date>
    </item>
  </channel>
</rss>

