<?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: Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182399#M9469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, thank you, for this helpful response!&amp;nbsp; I do have a follow-up question for clarification, and my apologies if this reveals some misunderstanding on my part as I'm still learning about mixed models.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I IGNORE the twin type and just include a random intercept reflecting that each person in the study is part of a "family cluster" (as below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;proc mixed method=ml covtest noclprint;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; class FAMILYID; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; model DEPENDENT = INDEPENDENT/solution;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; random intercept/sub=FAMILYID type=un gcorr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;I get a covariance parameter estimate for the "FAMILYID" as well as a residual term.&amp;nbsp; My understanding is that this decomposes the variability into "within-cluster" variability (residual estimate) and "between-cluster" variability (FAMILYID estimate).&amp;nbsp; I get the intraclass correlation coefficient between my family clusters by computing:&amp;nbsp; (FAMILYID estimate) divided by (FAMILYID estimate + residual estimate). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;When I use the syntax you suggested&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;proc mixed method=ml covtest noclprint;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; class FAMILYID; &amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; model DEPENDENT = INDEPENDENT/solution;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; random intercept/sub=FAMILYID group=TWINTYPE type=un gcorr;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;and look at my covariance parameters, I get one FAMILYID estimate for fraternal twins, one FAMILYID estimate for identical twins, and one residual term.&amp;nbsp; So -- this means that I have told my model to make different "between-cluster" estimates for identical and fraternal twins -- but isn't it still disregarding twin type when it calculates the residual term?&amp;nbsp; And if the residual term reflects the "within-cluster" variability, isn't it a problem that it doesn't take into consideration that there is likely to be LESS variability within an identical twin pair on the outcome variable and MORE variability within a fraternal twin pair?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;So I guess my follow-up question is:&amp;nbsp; is there syntax that would leave me with a between-cluster estimate for identical twins and fraternal twins, and then a residual term for identical twins and fraternal twins?&amp;nbsp; OR, am I confused as to why this would be needed? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Additional help/clarification much appreciated.&amp;nbsp; THANKS!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Sep 2014 17:59:07 GMT</pubDate>
    <dc:creator>SASBAS</dc:creator>
    <dc:date>2014-09-07T17:59:07Z</dc:date>
    <item>
      <title>Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182397#M9467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;I have a dataset with a number of identical twin pairs and fraternal twin pairs. I want to examine the relationship between two variables (let's call them INDEPENDENT and DEPENDENT). However, I can't run a normal OLS regression because each twin's dependent variable is correlated with their co-twin's.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;The way I have been dealing with this is to use SAS PROC MIXED and include a random intercept defined by twin pair (FAMILYID). Here is my syntax:&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;CODE style="font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222;"&gt;proc mixed method=ml covtest noclprint;&amp;lt;br&amp;gt;&lt;BR /&gt;&amp;nbsp; class FAMILYID; &amp;lt;br&amp;gt;&lt;BR /&gt;&amp;nbsp; model DEPENDENT = INDEPENDENT/solution;&amp;lt;br&amp;gt;&lt;BR /&gt;&amp;nbsp; random intercept/sub=FAMILYID type=un gcorr;&amp;lt;br&amp;gt;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(252, 251, 248, 0.901961);"&gt;However, I've realized that I have a heteroskedasticity problem. The identical twins are likely to be more related to each other than the fraternal twins (variable indicating whether twins are fraternal or identical is called TWINTYPE), and the model doesn't reflect this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;SPAN style="color: #444444; font-size: 15px; background-color: #fafafa; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;According to SAS documentation for the RANDOM statement: "GRP=effect defines an effect specifying heterogeneity in the covariance structure of &lt;STRONG&gt;G&lt;/STRONG&gt;. All observations having the same level of the group effect have the same covariance parameters."&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;SPAN style="color: #444444; font-size: 15px; background-color: #fafafa; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;It sounds like this is exactly what I want.&amp;nbsp; However, I am confused how this relates to the REPEATED statement and whether I need to use the REPEATED statement with "GROUP" instead of "RANDOM" or in &lt;SPAN style="text-decoration: underline;"&gt;addition&lt;/SPAN&gt; to random.&amp;nbsp; Conceptually, what are each of these doing and are they redundant for my purposes?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 21:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182397#M9467</guid>
      <dc:creator>SASBAS</dc:creator>
      <dc:date>2014-09-01T21:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182398#M9468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will probably have to add an additional variable the identifies the twin pair as homozygous or heterozygous.&amp;nbsp; For now call it twintype.&amp;nbsp; Then the following would work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; font-size: 13px;"&gt;proc mixed method=ml covtest noclprint;&lt;BR /&gt;&amp;nbsp; class FAMILYID twintype; &lt;BR /&gt;&amp;nbsp; model DEPENDENT = INDEPENDENT/solution;&lt;BR /&gt;&amp;nbsp; random intercept/sub=FAMILYID type=un group=twintype gcorr;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; font-size: 13px;"&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; font-size: 13px;"&gt;I am a bit on the fence about specifying type=un here, as FAMILYID only adds a variance component to your design, so far as I can tell.&amp;nbsp; I would recommend removing it.&amp;nbsp; The resulting random statement should give two variance components, derived from the twintype dichotomy.&amp;nbsp; &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; font-size: 13px;"&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; font-size: 13px;"&gt;Steve Denham&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 13:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182398#M9468</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-09-02T13:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182399#M9469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, thank you, for this helpful response!&amp;nbsp; I do have a follow-up question for clarification, and my apologies if this reveals some misunderstanding on my part as I'm still learning about mixed models.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I IGNORE the twin type and just include a random intercept reflecting that each person in the study is part of a "family cluster" (as below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;proc mixed method=ml covtest noclprint;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; class FAMILYID; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; model DEPENDENT = INDEPENDENT/solution;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; random intercept/sub=FAMILYID type=un gcorr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;I get a covariance parameter estimate for the "FAMILYID" as well as a residual term.&amp;nbsp; My understanding is that this decomposes the variability into "within-cluster" variability (residual estimate) and "between-cluster" variability (FAMILYID estimate).&amp;nbsp; I get the intraclass correlation coefficient between my family clusters by computing:&amp;nbsp; (FAMILYID estimate) divided by (FAMILYID estimate + residual estimate). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;When I use the syntax you suggested&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;proc mixed method=ml covtest noclprint;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; class FAMILYID; &amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; model DEPENDENT = INDEPENDENT/solution;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; random intercept/sub=FAMILYID group=TWINTYPE type=un gcorr;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;and look at my covariance parameters, I get one FAMILYID estimate for fraternal twins, one FAMILYID estimate for identical twins, and one residual term.&amp;nbsp; So -- this means that I have told my model to make different "between-cluster" estimates for identical and fraternal twins -- but isn't it still disregarding twin type when it calculates the residual term?&amp;nbsp; And if the residual term reflects the "within-cluster" variability, isn't it a problem that it doesn't take into consideration that there is likely to be LESS variability within an identical twin pair on the outcome variable and MORE variability within a fraternal twin pair?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;So I guess my follow-up question is:&amp;nbsp; is there syntax that would leave me with a between-cluster estimate for identical twins and fraternal twins, and then a residual term for identical twins and fraternal twins?&amp;nbsp; OR, am I confused as to why this would be needed? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, helvetica, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Additional help/clarification much appreciated.&amp;nbsp; THANKS!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 17:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182399#M9469</guid>
      <dc:creator>SASBAS</dc:creator>
      <dc:date>2014-09-07T17:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182400#M9470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to get separate residual terms would be to fit a REPEATED statement ( in addition to the current RANDOM) statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPEATED / group=twintype; /* May or may not want a subject= in this.&amp;nbsp; For now, I think not.&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see if this gives a heterogeneous error structure for the two twintypes.&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>Mon, 08 Sep 2014 12:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182400#M9470</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-09-08T12:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182401#M9471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah!&amp;nbsp; Thank you for verifying that the REPEATED statement is where I can manipulate the residual term.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the syntax above, and unfortunately, when I run it, I don't get any tests of fix effects or covariance parameter estimates or anything.&amp;nbsp; I get a log message that says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;An infinite likelihood is assumed in iteration 0 because of a nonpositive definite&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimated R matrix for Subject 606"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I googled this and it seems like it might be because the "TWINTYPE" variable is coded the same way across each individual?&amp;nbsp; My dataset is such that each line corresponds to an individual, and then there's a variable that indicates which family they are a part of and another variable that indicates whether their pair is fraternal or identical.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: rgba(252, 251, 248, 0.901961);"&gt;proc mixed method=ml covtest noclprint;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; class FAMILYID; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; model DEPENDENT = INDEPENDENT/solution;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; random intercept/sub=FAMILYID group=TWINTYPE type=un gcorr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: rgba(252, 251, 248, 0.901961);"&gt;&amp;nbsp; repeated/sub=FAMILYID group=TWINTYPE &lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;type=un rcorr;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: rgba(252, 251, 248, 0.901961);"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: rgba(252, 251, 248, 0.901961);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and the model successfully ran, but it spit out eight different covariance parameter estimates.&amp;nbsp; Conceptually, I'm having trouble understanding what these would correspond to and how I'd calculate the intraclass correlation coefficient like I did when I just had the random statement to worry about. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, many thanks for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 23:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182401#M9471</guid>
      <dc:creator>SASBAS</dc:creator>
      <dc:date>2014-09-08T23:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182402#M9472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the repeated statement by deleting the type=un option.&amp;nbsp; With that option in place, it calculates some covariances that actually do not exist in a twin study.&amp;nbsp; With that out, you should get four covariance parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fraternal twin variance component&lt;/P&gt;&lt;P&gt;Identical twin variance component&lt;/P&gt;&lt;P&gt;Fraternal twin residual variance&lt;/P&gt;&lt;P&gt;Identical twin residual variance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do NOT get this, then please attach a copy of your output, and I will try to figure out what is going on.&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>Tue, 09 Sep 2014 16:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182402#M9472</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-09-09T16:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182403#M9473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this worked!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&amp;nbsp; I've searched long and hard on the internet for help with this question. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 04:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Accounting-for-Different-Levels-of-Twin-Relatedness-in-SAS-PROC/m-p/182403#M9473</guid>
      <dc:creator>SASBAS</dc:creator>
      <dc:date>2014-09-10T04:09:26Z</dc:date>
    </item>
  </channel>
</rss>

