<?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: Help Calculating Skewness of Residuals in Proc Mixed!! in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119940#M6299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, Level-2 will probably be a bit more complicated. It would help us a lot if you posted a (simplified or disguised if necessary) version of your SAS code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 15:16:36 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2013-04-25T15:16:36Z</dc:date>
    <item>
      <title>Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119937#M6296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="discussion" data-category-id="6330850:Category:1024"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="xg_user_generated" style="margin: 5px 0;"&gt;&lt;P style="margin: 0px 0px 5px;"&gt;I am running a growth model with longitudinal person data and have been reading the following article:&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;&lt;A href="http://www.statcan.gc.ca/pub/82-003-x/2011004/article/11598-eng.htm" rel="nofollow" style="border-bottom-style: none; color: #3c78a7;"&gt;http://www.statcan.gc.ca/pub/82-003-x/2011004/article/11598-eng.htm&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;I would like to calculate the skewness of both level 1 and level 2 for my model like they do in this article but currently using ods graphics and outp i only get one measure of skewness. I am working at the RDC so cannot input my exact syntax. &lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;Can anyone help? It would be much appreciated. &lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;Sincerely,&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;Naomi&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;PhD Candidate&lt;/P&gt;&lt;P style="margin: 0px 0px 5px;"&gt;University of Toronto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="left-panel"&gt;&lt;/P&gt;&lt;DIV class="likebox likebox-ning" style="margin: 0 0 4px; font-size: 1.1em;"&gt;&lt;DIV class="ning-like" style="margin: 0 15px 0 0; font-size: 14px;"&gt;&lt;DIV class="xg_lightborder like-button like-button-3" style="margin: 0 3px 0 0; background-position: repeat no-repeat;"&gt;&lt;A class="xg_sprite" data-content-id="6330850:Topic:29938" data-content-type="Topic" data-like-url="/main/like/like" data-page-type="detail" data-sign-up-url="http://sascanada.ning.com/main/authorization/signUp?target=http%3A%2F%2Fsascanada.ning.com%2Fforum%2Ftopics%2Fhelp-calculating-skewness-of-residuals-in-proc-mixed%3FcommentId%3D6330850%253AComment%253A29940%26xg_source%3Dmsg_com_forum" data-unlike-url="/main/like/unlike" href="http://sascanada.ning.com/forum/topics/help-calculating-skewness-of-residuals-in-proc-mixed?commentId=6330850%3AComment%3A29940&amp;amp;xg_source=msg_com_forum" style="border-bottom-style: none; color: #3c78a7; padding: 2px 6px 3px 23px !important; background-position: no-repeat no-repeat;"&gt;Like&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="share-links clear" style="margin: 5px 0px;"&gt;&lt;A class="xg_sprite xg_sprite-share" style="margin: 0 5px 0 0; padding: 0 0 0 20px; border-bottom-style: none; color: #3c78a7; background-position: no-repeat no-repeat;"&gt;Share&lt;/A&gt;&lt;A _contentid="6330850:Topic:29938" _message="Checking out &amp;quot;Help Calculating Skewness of Residuals in Proc Mixed!!&amp;quot; on SAS Canada Community:" _screenname="" _source="content" _twitterauthenticationneeded="" _url="http://sascanada.ning.com/forum/topics/help-calculating-skewness-of-residuals-in-proc-mixed?commentId=6330850%3AComment%3A29940&amp;amp;xg_source=msg_com_forum" _urlshortenerkey="348488832031" class="post_to_twitter" href="http://sascanada.ning.com/main/tweet/create?url=http%3A%2F%2Fsascanada.ning.com%2Fforum%2Ftopics%2Fhelp-calculating-skewness-of-residuals-in-proc-mixed%3FcommentId%3D6330850%253AComment%253A29940%26xg_source%3Dmsg_com_forum&amp;amp;message=Checking%20out%20%22Help%20Calculating%20Skewness%20of%20Residuals%20in%20Proc%20Mixed!!%22%20on%20SAS%20Canada%20Community%3A" style="margin: 0 5px 0 0; padding: 0 0 0 16px; border-bottom-style: none; color: #3c78a7; background-position: no-repeat no-repeat !important;" target="_blank"&gt;Twitter&lt;/A&gt;&lt;A _contentid="6330850:Topic:29938" _log="{&amp;quot;module&amp;quot;:&amp;quot;forum&amp;quot;,&amp;quot;page&amp;quot;:&amp;quot;topic&amp;quot;,&amp;quot;action&amp;quot;:&amp;quot;show&amp;quot;}" _title="" _url="http://sascanada.ning.com/forum/topics/help-calculating-skewness-of-residuals-in-proc-mixed?commentId=6330850%3AComment%3A29940&amp;amp;xg_source=facebookshare" class="post_to_facebook xj_post_to_facebook" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsascanada.ning.com%2Fforum%2Ftopics%2Fhelp-calculating-skewness-of-residuals-in-proc-mixed%3FcommentId%3D6330850%253AComment%253A29940%26xg_source%3Dfacebookshare&amp;amp;t=" style="margin: 0 5px 0 0; padding: 0 0 0 20px; border-bottom-style: none; color: #3c78a7; background-position: no-repeat no-repeat !important;"&gt;Facebook&lt;/A&gt;&lt;/P&gt;&lt;P class="small dy-clear view-count-container" style="margin: 5px 0px;"&gt;&lt;SPAN class="view-count-label"&gt;Views:&lt;/SPAN&gt; &lt;SPAN class="view-count" style="font-weight: bold;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 00:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119937#M6296</guid>
      <dc:creator>naomi_lightman</dc:creator>
      <dc:date>2013-04-25T00:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119938#M6297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless I am missing something, it should be enough to add option &lt;STRONG&gt;OUTP=myL1Res&lt;/STRONG&gt;id to your MODEL statement in PROC MIXED and then do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;proc univariate data=myL1Resid normal ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;var Resid;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the skewness of residuals and a whole lot of other distribution measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same thing for L2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 01:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119938#M6297</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-25T01:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119939#M6298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the article I am referencing provides different calculations of skewness at each level - which is what I would assume.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I do as you say above I get identical output when I put L1 versus L2 - I assume I am just changing the name of the dataset, right? Am I supposed to put the OUTP statement somewhere different in the proc mixed statement to get the residual output for level2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naomi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119939#M6298</guid>
      <dc:creator>naomi_lightman</dc:creator>
      <dc:date>2013-04-25T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119940#M6299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, Level-2 will probably be a bit more complicated. It would help us a lot if you posted a (simplified or disguised if necessary) version of your SAS code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 15:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119940#M6299</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-25T15:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119941#M6300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK sure, it's something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed noclprint poitprint data = work.slid;&lt;/P&gt;&lt;P&gt;class personid;&lt;/P&gt;&lt;P&gt;model index = vismin vismin*t cborn cborn*t (etc.) / residual solution ddfm = btw notest cl;&lt;/P&gt;&lt;P&gt;random intercept t/sub=personid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 15:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119941#M6300</guid>
      <dc:creator>naomi_lightman</dc:creator>
      <dc:date>2013-04-25T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119942#M6301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try something like this (also hoping to get &lt;A __default_attr="455729" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s opinion on this):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;random intercept t/sub=personid&lt;STRONG style="color: #ff0000;"&gt; s&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ods output SolutionR=Level_2R;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;proc univariate data=Level_2R(where=(&lt;SPAN style="color: #008080;"&gt;lowcase(Effect)="t"&lt;/SPAN&gt;)) normal;&lt;/P&gt;&lt;P&gt;var Estimate;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure about the &lt;SPAN style="color: #008080;"&gt;part in blue&lt;/SPAN&gt;. Check the Level_2R dataset to select the proper rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 16:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119942#M6301</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-25T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119943#M6302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - this did work but I'm not exactly sure I understand what it's doing. what is "s"? &lt;/P&gt;&lt;P&gt;It is now calculating a new skewness measure which I can take to be the Level 2 measure? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate all your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 21:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119943#M6302</guid>
      <dc:creator>naomi_lightman</dc:creator>
      <dc:date>2013-04-25T21:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119944#M6303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Option s is for requesting the printing of random effect estimates (solutions). It is required to get the SolutionR output dataset.&lt;/P&gt;&lt;P&gt;What I understand in the referenced article is that Level-2 residuals are the estimated random effects associated with individuals, i.e. the variation&lt;SPAN style="text-decoration: underline;"&gt; between&lt;/SPAN&gt; individuals. Level-1 residuals are the random variation of measurements &lt;SPAN style="text-decoration: underline;"&gt;within&lt;/SPAN&gt; individuals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope somebody better versed in MIXED modelling than I am will be able to help you further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 22:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119944#M6303</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-25T22:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119945#M6304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody (for those of you who are Simpsons fans, that's Dr Nick's entering line),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go with the answers that PG offered.&amp;nbsp; The OUTP= dataset will have the level 1 residuals, the ODS output statement for the solution of the random effects will give the level 2 residuals.&amp;nbsp; NOTE WELL: The level 2 residuals are meaningful only if you are working with a normal distribution in PROC MIXED.&amp;nbsp; If you were fitting a generalized linear mixed model using PROC GLIMMIX, the values are not really residuals in the traditional sense.&amp;nbsp; They are deviations, but unless an overdispersion effect is added, the model does not include residual error.&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>Fri, 26 Apr 2013 12:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119945#M6304</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-26T12:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Skewness of Residuals in Proc Mixed!!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119946#M6305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. Thanks for this Steve. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 14:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Calculating-Skewness-of-Residuals-in-Proc-Mixed/m-p/119946#M6305</guid>
      <dc:creator>naomi_lightman</dc:creator>
      <dc:date>2013-05-01T14:38:58Z</dc:date>
    </item>
  </channel>
</rss>

