<?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 simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixed) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416065#M21831</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;how can i do simulation study for choosing the best covariance structure of errors using AIC and BIC in mixed models (using proc mixed) .appreciate any help.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2017 17:57:30 GMT</pubDate>
    <dc:creator>fatemeh</dc:creator>
    <dc:date>2017-11-24T17:57:30Z</dc:date>
    <item>
      <title>simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixed)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416065#M21831</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;how can i do simulation study for choosing the best covariance structure of errors using AIC and BIC in mixed models (using proc mixed) .appreciate any help.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 17:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416065#M21831</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2017-11-24T17:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416186#M21843</link>
      <description>&lt;P&gt;Are there any more&amp;nbsp;details you can provide? What covariance structure(s) do you intend to simulate?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A complete description of&amp;nbsp;the simulation study would be quite lengthy. If you plan to do a lot of simulation, I recommend &lt;A href="https://www.sas.com/sas/books/authors/rick-wicklin.html" target="_self"&gt;Simulating&amp;nbsp;Data with SAS&lt;/A&gt;, which provides many details and examples&amp;nbsp;of how to efficiently run simulation studies in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Briefly, I suggest you read&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2012/07/18/simulation-in-sas-the-slow-way-or-the-by-way.html" target="_self"&gt;"Simulation in SAS: The slow way or the BY way"&lt;/A&gt;&amp;nbsp;which outlines the main ideas. You might also want to read&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2014/06/27/simulate-many-samples-from-a-logistic-regression-model.html" target="_self"&gt;"Simulate many samples from a logistic regression model,"&lt;/A&gt;&amp;nbsp;which provides a nontrivial regression example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Overall, you design would look like this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Choose a covariance structure&amp;nbsp;for the simulated data&lt;/P&gt;
&lt;P&gt;2. Simulate B samples using the BY-group method. (B large, but use smaller B while debugging).&lt;/P&gt;
&lt;P&gt;3. Use PROC MIXED with a BY variable to analyze the data.&amp;nbsp; Save the AIC and BIC statistics in a data set. Do this for each covariance structure in your study; each structure requires its own PROC MIXED step.&lt;/P&gt;
&lt;P&gt;4. Examine and compare the distributions of AIC and BIC. Do the AIC (BIC) values for&amp;nbsp;one structure tend to be less than the AIC scores for a different structure?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 12:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416186#M21843</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-26T12:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416249#M21845</link>
      <description>Thanks for your response. For examine and compare the distribution of AIC what procedure should I use? Proc univariate or proc means?</description>
      <pubDate>Mon, 27 Nov 2017 05:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416249#M21845</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2017-11-27T05:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416311#M21847</link>
      <description>&lt;P&gt;Either would work.PROC MEANS is more concise. PROC UNIVARIATE enables you to &lt;A href="https://blogs.sas.com/content/iml/2016/03/09/comparative-panel-overlay-histograms-sas.html" target="_self"&gt;produce comparative histograms &lt;/A&gt;and fit distributions (e.g., normal) to the approximate sampling distributions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You&amp;nbsp;need to use the procedure(s) that address&amp;nbsp;your research questions. For example, if you are hypothesizing that the mean AIC value is lower for the AR(1) structure than for the CS structure, you might use PROC TTEST to run a two-sample t test&amp;nbsp;for the means.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/416311#M21847</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-27T10:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417232#M21912</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;i have a question about the estimating sampling distribution of the variance of random effects of the data(varCS and varR)&amp;nbsp; that i was simulating using&amp;nbsp; repeated measures data having fixed effect and random error effects.i used proc univariate to see the sampling distributions but why my estimations&amp;nbsp; are not close to the variance of CS and residuals ? R is a compound symmetry matrix. bellow is my code&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc iml;&lt;BR /&gt;FixedVar = "_X1":"_X48";&lt;BR /&gt;use All;&lt;BR /&gt;read all var FixedVar into X;&lt;BR /&gt;close All;&lt;BR /&gt;use SolutionF; read all var {Estimate} into beta;&lt;BR /&gt;close;&lt;BR /&gt;eta = X*beta;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;use CovParms; read all var {Estimate} into var; close;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;varCS=var[1];&lt;BR /&gt;varR=var[2];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Variance of residuals*/&lt;BR /&gt;k=15;&lt;BR /&gt;s=17;&lt;BR /&gt;b=varCS*j(k,k,1 )+varR*I(k);&lt;BR /&gt;R=b;&lt;BR /&gt;do i=2 to s;&lt;BR /&gt;R=block(R,b);&lt;BR /&gt;end;&lt;BR /&gt;R = I(s) @ b;*print R;&lt;BR /&gt;zer = j(1,k*s,0);*print zer;&lt;BR /&gt;call randseed(1234);&lt;BR /&gt;eps= j(nrow(x) , 500);&lt;BR /&gt;call randgen(eps, "normal" ,zer ,R);&lt;BR /&gt;Y = eta +eps; * print Y;&lt;BR /&gt;yNames = "y1": ("y"+strip(char(500)));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;create Simdat from Y[c=yNames];&amp;nbsp; append from Y;&amp;nbsp; close;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417232#M21912</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2017-11-29T20:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417234#M21913</link>
      <description>&lt;P&gt;I think you&amp;nbsp;want eps to be MVN(0, R), in which case you should call&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eps = RandNormal(1, zer, R);&lt;/P&gt;
&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;call randgen(eps, "Normal", zer, R);&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417234#M21913</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-29T20:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417240#M21914</link>
      <description>&lt;P&gt;why it gives me error that &amp;nbsp;Matrix Y has not been set to a value?bellow is the changed code.&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;FixedVar = "_X1":"_X48";&lt;BR /&gt;use All;&lt;BR /&gt;read all var FixedVar into X;&lt;BR /&gt;close All;&lt;BR /&gt;use SolutionF; read all var {Estimate} into beta;&lt;BR /&gt;close;&lt;BR /&gt;eta = X*beta;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;use CovParms; read all var {Estimate} into var; close;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;varCS=var[1];&lt;BR /&gt;varR=var[2];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Variance of residuals*/&lt;BR /&gt;k=15;&lt;BR /&gt;s=17;&lt;BR /&gt;b=varCS*j(k,k,1 )+varR*I(k);&lt;BR /&gt;R=b;&lt;BR /&gt;do i=2 to s;&lt;BR /&gt;R=block(R,b);&lt;BR /&gt;end;&lt;BR /&gt;R = I(s) @ b;*print R;&lt;BR /&gt;zer = j(1,k*s,0);*print zer;&lt;BR /&gt;call randseed(1234);&lt;BR /&gt;eps= j(nrow(x) , 500);&lt;BR /&gt;eps=randnormal(1 ,zer ,R);&lt;BR /&gt;Y = eta +eps; * print Y;&lt;BR /&gt;yNames = "y1": ("y"+strip(char(500)));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;create Simdat from Y[c=yNames];&amp;nbsp; append from Y;&amp;nbsp; close;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417240#M21914</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2017-11-29T21:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417247#M21915</link>
      <description>&lt;P&gt;Because your dimensions are not compatible.&amp;nbsp; I assume that eta is a column vector with N elements where N=nrow(X).&amp;nbsp; The eps vector is a row vector with dimension 1 x 255.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417247#M21915</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-29T21:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417262#M21916</link>
      <description>&lt;P&gt;thanks your solution solved my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 06:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417262#M21916</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2017-11-30T06:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417283#M21917</link>
      <description>&lt;P&gt;I don't know. It is very difficult to guess what&amp;nbsp;you might&amp;nbsp;be doing wrong. I suggest you &lt;A href="https://blogs.sas.com/content/iml/2015/08/26/convergence-sim.html" target="_self"&gt;make sure that you are not having convergence&amp;nbsp;problems.&lt;/A&gt; Good luck.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 01:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/417283#M21917</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-30T01:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/419841#M22091</link>
      <description>&lt;P&gt;Hello.DR.Wicklin,&lt;/P&gt;&lt;P&gt;First i appreciate you for all your knowledge that you are sharing with us. I am applying proc mixed with only repeat statement and the covariance structure is sp(power). my question is about sas output. I am confused about the first covparm estimate of the output table, which is sp(pow). what is its relation with rho. To be clear, i attached the output table and my sas code below. Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 19:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/419841#M22091</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2017-12-09T19:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: simulation study using AIC for selecting covariance structre of errors in mixed model (proc mixe</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/420057#M22100</link>
      <description>&lt;P&gt;I suggest you open a new thread with an appropriate title to ask about the meaning of the parameter in the mixed model.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation-study-using-AIC-for-selecting-covariance-structre-of/m-p/420057#M22100</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-12-11T11:01:28Z</dc:date>
    </item>
  </channel>
</rss>

