<?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 MIANALYSE not producing overall p-value for class variables despite classvar=full option in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/MIANALYSE-not-producing-overall-p-value-for-class-variables/m-p/458029#M23884</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My data is longitudinal with repeated measures of the exposure and the outcome across time. My exposure variable and outcome variable are continuous, but I'm controlling for continuous and categorical variables. I have imputed the missing covariates and used a mixed model with a random intercept. When I try using MIANALYZE, SAS does not produce combined tests/p-values for my categorical variables even though I've included the classvar=full option as described in the documentation. I get this&amp;nbsp;warning message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;&lt;STRONG&gt;WARNING: The within-imputation covariance matrix is singular. The total covariance matrix and related statistics in multivariate&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&lt;STRONG&gt;inference will be set to missing.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I also tried using the TEST statement to produce a combined test of my categorical variable but I get an error message saying TEST cannot be used with class variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the structure of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MI DATA=data OUT=outmi;&lt;BR /&gt;CLASS group;&lt;BR /&gt;FCS DISCRIM(group) REG(exposure);&lt;BR /&gt;VAR group &amp;lt;and multiple other variables&amp;gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIXED DATA=data covtest;&lt;/P&gt;&lt;P&gt;BY _IMPUTATION_;&lt;/P&gt;&lt;P&gt;CLASS id group;&lt;/P&gt;&lt;P&gt;MODEL outcome=time exposure group time*exposure /ddfm=bw solution CL covb;&lt;/P&gt;&lt;P&gt;RANDOM intercept / SUBJECT=id TYPE=UN;&lt;/P&gt;&lt;P&gt;ods output SolutionF=mixparms CovB=mixcovb;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIANALYZE PARMS(CLASSVAR=full)=mixparms COVB(EFFECTVAR=rowcol)=mixcovb;&lt;/P&gt;&lt;P&gt;CLASS group;&lt;/P&gt;&lt;P&gt;MODELEFFECTS intercept time exposure group time*exposure;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate your help. I've been looking everywhere. Others have had a&amp;nbsp;similar issue, but the solution seems to have been the CLASSVAR=full option which didn't work for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 07:20:07 GMT</pubDate>
    <dc:creator>ameliebjean</dc:creator>
    <dc:date>2018-04-27T07:20:07Z</dc:date>
    <item>
      <title>MIANALYSE not producing overall p-value for class variables despite classvar=full option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MIANALYSE-not-producing-overall-p-value-for-class-variables/m-p/458029#M23884</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My data is longitudinal with repeated measures of the exposure and the outcome across time. My exposure variable and outcome variable are continuous, but I'm controlling for continuous and categorical variables. I have imputed the missing covariates and used a mixed model with a random intercept. When I try using MIANALYZE, SAS does not produce combined tests/p-values for my categorical variables even though I've included the classvar=full option as described in the documentation. I get this&amp;nbsp;warning message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;&lt;STRONG&gt;WARNING: The within-imputation covariance matrix is singular. The total covariance matrix and related statistics in multivariate&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&lt;STRONG&gt;inference will be set to missing.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I also tried using the TEST statement to produce a combined test of my categorical variable but I get an error message saying TEST cannot be used with class variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the structure of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MI DATA=data OUT=outmi;&lt;BR /&gt;CLASS group;&lt;BR /&gt;FCS DISCRIM(group) REG(exposure);&lt;BR /&gt;VAR group &amp;lt;and multiple other variables&amp;gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIXED DATA=data covtest;&lt;/P&gt;&lt;P&gt;BY _IMPUTATION_;&lt;/P&gt;&lt;P&gt;CLASS id group;&lt;/P&gt;&lt;P&gt;MODEL outcome=time exposure group time*exposure /ddfm=bw solution CL covb;&lt;/P&gt;&lt;P&gt;RANDOM intercept / SUBJECT=id TYPE=UN;&lt;/P&gt;&lt;P&gt;ods output SolutionF=mixparms CovB=mixcovb;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIANALYZE PARMS(CLASSVAR=full)=mixparms COVB(EFFECTVAR=rowcol)=mixcovb;&lt;/P&gt;&lt;P&gt;CLASS group;&lt;/P&gt;&lt;P&gt;MODELEFFECTS intercept time exposure group time*exposure;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate your help. I've been looking everywhere. Others have had a&amp;nbsp;similar issue, but the solution seems to have been the CLASSVAR=full option which didn't work for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 07:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MIANALYSE-not-producing-overall-p-value-for-class-variables/m-p/458029#M23884</guid>
      <dc:creator>ameliebjean</dc:creator>
      <dc:date>2018-04-27T07:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: MIANALYSE not producing overall p-value for class variables despite classvar=full option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MIANALYSE-not-producing-overall-p-value-for-class-variables/m-p/459272#M23980</link>
      <description>&lt;P&gt;This will happen any time you are using the covariance matrix from MIXED since it provides a design matrix that is not full rank.&amp;nbsp; Since you are not using the MULT option or the TEST statement you can remove the COVB= data set completely and the WARNING will go away.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get combined tests for the CLASS variables (since MIANALYZE does not allow a TEST statement) you could take the approach detailed in this paper.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings14/1543-2014.pdf" target="_self"&gt;&amp;nbsp;http://support.sas.com/resources/papers/proceedings14/1543-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 12:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MIANALYSE-not-producing-overall-p-value-for-class-variables/m-p/459272#M23980</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-05-02T12:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: MIANALYSE not producing overall p-value for class variables despite classvar=full option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MIANALYSE-not-producing-overall-p-value-for-class-variables/m-p/459565#M23990</link>
      <description>&lt;P&gt;Thanks, but unfortunately, it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot produce type3s with the mixed model. When I add "method=type3" in the proc mixed statement, I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Type 3 estimation is not available with this model.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I can't use the macro from the paper you gave me because I cannot produce and extract the type3s.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you know&amp;nbsp;a way around this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amélie&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 08:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MIANALYSE-not-producing-overall-p-value-for-class-variables/m-p/459565#M23990</guid>
      <dc:creator>ameliebjean</dc:creator>
      <dc:date>2018-05-03T08:23:12Z</dc:date>
    </item>
  </channel>
</rss>

