<?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: heteroscedastic variances in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119797#M259619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much PG. One more question if you don't mind, do you have a sample simulation code to generate multilevel data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2013 22:54:53 GMT</pubDate>
    <dc:creator>sirerwin</dc:creator>
    <dc:date>2013-09-26T22:54:53Z</dc:date>
    <item>
      <title>heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119786#M259608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Does anyone know of a SAS code to generate heteroscedastic variances for two groups (i.e., treatment vs. control)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 03:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119786#M259608</guid>
      <dc:creator>dessert_fox</dc:creator>
      <dc:date>2013-02-24T03:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119787#M259609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we need more information on what you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119787#M259609</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-02-25T15:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119788#M259610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to &lt;EM&gt;simulate&lt;/EM&gt;, &lt;EM&gt;estimate&lt;/EM&gt; or &lt;EM&gt;compare&lt;/EM&gt; variances for two groups? - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 17:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119788#M259610</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-02-25T17:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119789#M259611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I wanted to simulate where the treatment group has a greater variance compared to the control group. Any model could do: t-test, ANOVA, or better yet a multilvel model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 03:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119789#M259611</guid>
      <dc:creator>dessert_fox</dc:creator>
      <dc:date>2013-03-04T03:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119790#M259612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I did not provide that much information to my earlier question. So basically, I want to simulate data where I can estimate and compare the variance between two groups (i.e., treatment vs. control) and it could be a simple t test, or ANOVA, or a multilevel model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Reeza!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rommel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 03:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119790#M259612</guid>
      <dc:creator>dessert_fox</dc:creator>
      <dc:date>2013-03-04T03:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119791#M259613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be looking at contrast or estimate statements with hovtest= bf welch lavene .&lt;/P&gt;&lt;P&gt;These options will give you different variance tests. A good book with examples is analysis of messy data volume 1 by milliken and johnson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 04:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119791#M259613</guid>
      <dc:creator>Saszealot</dc:creator>
      <dc:date>2013-03-04T04:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119792#M259614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, here is a simulation of ANOVA with two groups, in the equal and unequal variances cases :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;data test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;length case $16;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;call streaminit(384239);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;case = "EQUAL VARIANCES";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;do group = "A", "B";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do _n_ = 1 to 50;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = rand("NORMAL", 10, 2);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;case = "UNEQUAL VARIANCES";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;group = "A";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;do _n_ = 1 to 50;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = rand("NORMAL", 10, 2);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;group = "B";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;do _n_ = 1 to 50;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = rand("NORMAL", 10, 3);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;proc glm data=test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;by case;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;class group;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;model x = group;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;means group / hovtest welch;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 17:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119792#M259614</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-03-04T17:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119793#M259615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG,&lt;/P&gt;&lt;P&gt;Thanks so much. This would give me a good starting point to learn how to simulate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rommel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 01:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119793#M259615</guid>
      <dc:creator>dessert_fox</dc:creator>
      <dc:date>2013-03-05T01:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119794#M259616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PGStats,&lt;/P&gt;&lt;P&gt;I've strated writing simulation codes for multilevel mediation model for normal and non-normal combined with heteroscedastic variance. Would you be kind enough to take a look at my codes when you happen to have time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rommel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 23:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119794#M259616</guid>
      <dc:creator>dessert_fox</dc:creator>
      <dc:date>2013-03-06T23:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119795#M259617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rommel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have SAS/IML licensed?&amp;nbsp; If so, then take a look through &lt;A __default_attr="129106" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s blog, and find a wealth of information regarding simulation, with special parts on simulating from multivariable normal distributions, and correlated/clustered observations.&amp;nbsp; IML is so much more powerful for simulation than DATA step programming that if simulation is going to be a major part of your work, you should consider getting a license.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 13:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119795#M259617</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-03-07T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119796#M259618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Steve I have a SAS-IML license. And I have already looked through Rick Wicklin's blog and it's been very helpful. But right I would say I'm still at the very basic level of doing simulation. I wonder if at this point it's already ok to learn simulation in SAS-IML. I never knew it was more powerful though. But yes, I will start learnin SAS-IML. In fact, I already pre-ordered his book on simulation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Steve!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rommel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 01:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119796#M259618</guid>
      <dc:creator>dessert_fox</dc:creator>
      <dc:date>2013-03-08T01:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119797#M259619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much PG. One more question if you don't mind, do you have a sample simulation code to generate multilevel data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 22:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119797#M259619</guid>
      <dc:creator>sirerwin</dc:creator>
      <dc:date>2013-09-26T22:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119798#M259620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please be more precise. What would you like that data to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 00:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119798#M259620</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-09-27T00:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119799#M259621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Specifically, I want to generate a multilevel data where I have a treatment and a control group with the following&lt;/P&gt;&lt;P&gt;conditions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) two levels of clusters (20 and 40 groups)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) two levels of sample size (10 for small sample and 20 for medium-sized sample)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c) for each sample size, 1/2 is assigned to treatment and 1/2 is to control&lt;/P&gt;&lt;P&gt;Given these, I want to generate data from a nonnormal distribution (chi-square dist with df=1) and a&lt;/P&gt;&lt;P&gt;heteroscedastic variance where treatment to control variance ratio is 8:1.&lt;/P&gt;&lt;P&gt;From there I want to assess how nonnormality and heteroscedasticity affects the power and type I error of a statistical test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much, PG! Let me know if you need more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 05:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119799#M259621</guid>
      <dc:creator>sirerwin</dc:creator>
      <dc:date>2013-09-28T05:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119800#M259622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick's book on simulation is excellent (not surprising) and starts with the very basics. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 11:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119800#M259622</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2013-09-28T11:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119801#M259623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more detail. The chi-square distribution with ν degrees of freedom has mean = ν and variance = 2ν. Do you want your treatment and control groups to be simulated with different DFs, in which case they will have different means AND different variances?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 21:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119801#M259623</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-09-28T21:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119802#M259624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want a chi-square distribution with 1 df (to reflect a severe nonnormality) and a heteroscedastic variance ratio of 8:1 between the treatment and control. I also want to have equal dfs for both treatment and control (balanced design). Hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, PG!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Sep 2013 00:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119802#M259624</guid>
      <dc:creator>sirerwin</dc:creator>
      <dc:date>2013-09-29T00:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: heteroscedastic variances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119803#M259625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that control and treatment samples should have the same mean but 1:8 variances? I think you need a related but slightly more general distribution to do that: the Gamma. Gamma(alpha, beta) has mean=alpha*beta and variance=alpha*beta**2.&lt;/P&gt;&lt;P&gt;As an introduction, here is how to generate an illustration of Gamma(1,1) and Gamma(0.125,8) (same mean, 1:8 variances)&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;&lt;STRONG&gt;data gamma;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do x = 0.1 to 10 by 0.1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y1 = PDF("GAMMA", x, 1, 1); &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y2 = PDF("GAMMA", x, 0.125, 8);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=gamma;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;series x=x y=y1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;series x=x y=y2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how to simulate data groups from those distributions and look at the resulting sample distributions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;call streaminit(875665);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;do clustNb = 20, 40;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do clustNo = 1 to clustNb;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do sampSize= 10, 20;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; group="Treatment";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&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;/STRONG&gt;&lt;STRONG&gt;do i = 1 to int(sampSize/2);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; x = 8 * RAND("GAMMA", 0.125);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; group="Control";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; do i = int(sampSize/2)+1 to sampSize;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; x = 1 * RAND("GAMMA", 1);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&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; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc univariate data=test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;class group;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var x;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;histogram;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Sep 2013 02:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/heteroscedastic-variances/m-p/119803#M259625</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-09-29T02:55:12Z</dc:date>
    </item>
  </channel>
</rss>

