<?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: proc mianalyze not running - what am I missing? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859605#M42478</link>
    <description>&lt;P&gt;Have you looked at the example in the PROC MIANALYZE documentation, in the section, &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_mianalyze_examples05.htm" target="_self"&gt;"Reading Generalized Linear Model Results"?&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It uses a CLASS statement and a GENMOD example. The example uses the COVB option on the MODEL statement and captures three ODS tables, which are used by PROC MIANALYZE. I suggest you try to mimic that example.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Feb 2023 11:02:01 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2023-02-19T11:02:01Z</dc:date>
    <item>
      <title>proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859589#M42475</link>
      <description>&lt;P&gt;I am using proc mianalyze and it won't finish running. It just freezes but I'm not sure what's going wrong. I tried different numbers of imputations to see if that was the issue but no luck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code. Any advice?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc mi data= spite.MIaim1 nimpute=5 /*20*/ out=mi_fcs ;&lt;BR /&gt;class race_collapsed alcohol_use breastfeed rural year_diagnosis sexuality_dich smoking;&lt;BR /&gt;fcs plots=trace(mean std);&lt;BR /&gt;var race_collapsed BMI sexuality_dich age2 agediagnosed diagnosticdelay smoking alcohol_use rural age_firstperiod preg3 breastfeed year_diagnosis;&lt;BR /&gt;fcs discrim(race_collapsed sexuality_dich alcohol_use breastfeed rural year_diagnosis /classeffects=include) nbiter =100 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=mi_fcs;&lt;BR /&gt;class race_collapsed (ref = 'White') sexuality_dich (ref = 'Straight') smoking (ref = "Never Smoker") alcohol_use (ref = "Non-drinker") rural (ref = "Never rural")&lt;BR /&gt;income2 (ref = "60k +") employment2 (ref = "Employed FT") education2 (ref = "Undergrad and higher")&lt;BR /&gt;breastfeed (ref = "Ever Breastfed")&lt;BR /&gt;;&lt;BR /&gt;model factor1 = race_collapsed BMI sexuality_dich age2 agediagnosed diagnosticdelay income2 employment2 education2&lt;BR /&gt;smoking alcohol_use rural age_firstperiod preg3 breastfeed num_comorbidities year_diagnosis/dist=normal ;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=gm_fcs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC MIANALYZE parms(classvar=level)=gm_fcs;&lt;BR /&gt;class race_collapsed alcohol_use breastfeed rural year_diagnosis sexuality_dich smoking;&lt;BR /&gt;MODELEFFECTS INTERCEPT factor1 race_collapsed BMI sexuality_dich age2 agediagnosed diagnosticdelay income2 employment2 education2&lt;BR /&gt;smoking alcohol_use rural age_firstperiod preg3 breastfeed num_comorbidities year_diagnosis;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 03:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859589#M42475</guid>
      <dc:creator>undercover_247</dc:creator>
      <dc:date>2023-02-19T03:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859604#M42477</link>
      <description>I am not sure. Try to remove CLASS in PROC MIANALYZE .</description>
      <pubDate>Sun, 19 Feb 2023 09:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859604#M42477</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-02-19T09:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859605#M42478</link>
      <description>&lt;P&gt;Have you looked at the example in the PROC MIANALYZE documentation, in the section, &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_mianalyze_examples05.htm" target="_self"&gt;"Reading Generalized Linear Model Results"?&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It uses a CLASS statement and a GENMOD example. The example uses the COVB option on the MODEL statement and captures three ODS tables, which are used by PROC MIANALYZE. I suggest you try to mimic that example.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 11:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859605#M42478</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-02-19T11:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859645#M42489</link>
      <description>Try taking the response variable(factor1) off the MODELEFFECTS statement.  It should not be there.</description>
      <pubDate>Sun, 19 Feb 2023 19:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859645#M42489</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-02-19T19:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859781#M42498</link>
      <description>&lt;P&gt;I'm trying this and for some reason I get this error:&amp;nbsp;ERROR: The parameter Prm5 in the PARMINFO= data set is not in the COVB= data set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It just seems to skip over 5 and I can't figure out why yet&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 21:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859781#M42498</guid>
      <dc:creator>undercover_247</dc:creator>
      <dc:date>2023-02-20T21:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859796#M42499</link>
      <description>&lt;P&gt;When you have a CLASS statement in MIANALYZE you do not need to use either the PARMINFO or COVB= data sets.&amp;nbsp; You only need the PARMS= data set.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 23:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/859796#M42499</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-02-20T23:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/860772#M42529</link>
      <description>&lt;P&gt;I have made the following edits and still can't get it to run. I removed the&amp;nbsp;(classvar=level) and it ran but I don't believe I should take that out. What do you think?&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mi data= spite.MIaim1 nimpute=5 out=mi_fcs ;&lt;BR /&gt;class race_collapsed alcohol_use breastfeed rural year_diagnosis sexuality_dich smoking;&lt;BR /&gt;fcs plots=trace(mean std);&lt;BR /&gt;var race_collapsed BMI sexuality_dich age2 agediagnosed diagnosticdelay smoking alcohol_use rural age_firstperiod preg3 breastfeed year_diagnosis;&lt;BR /&gt;fcs discrim(race_collapsed sexuality_dich alcohol_use breastfeed rural year_diagnosis smoking/classeffects=include) nbiter =100 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc freq data = spite.miaim1;&lt;BR /&gt;table income2 race_collapsed BMI sexuality_dich age2 agediagnosed diagnosticdelay employment2 education2 smoking alcohol_use rural age_firstperiod preg3 breastfeed num_comorbidities year_diagnosis;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc genmod data=mi_fcs;&lt;BR /&gt;class race_collapsed (ref = 'White') sexuality_dich (ref = 'Straight') smoking (ref = "Never Smoker") alcohol_use (ref = "Non-drinker") rural (ref = "Never rural")&lt;BR /&gt;income2 (ref = "60k +") employment2 (ref = "Employed FT") education2 (ref = "Undergrad and higher")&lt;BR /&gt;breastfeed (ref = "Ever Breastfed")&lt;BR /&gt;;&lt;BR /&gt;model factor1 = race_collapsed BMI sexuality_dich age2 agediagnosed diagnosticdelay income2 employment2 education2&lt;BR /&gt;smoking alcohol_use rural age_firstperiod preg3 breastfeed num_comorbidities year_diagnosis/dist=normal ;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=gm_fcs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;PROC MIANALYZE parms(classvar=level)=gm_fcs;&lt;BR /&gt;class race_collapsed alcohol_use breastfeed rural year_diagnosis sexuality_dich smoking;&lt;BR /&gt;MODELEFFECTS INTERCEPT factor1 race_collapsed BMI sexuality_dich age2 agediagnosed diagnosticdelay income2 employment2 education2&lt;BR /&gt;smoking alcohol_use rural age_firstperiod preg3 breastfeed num_comorbidities year_diagnosis;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 20:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/860772#M42529</guid>
      <dc:creator>undercover_247</dc:creator>
      <dc:date>2023-02-24T20:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/860886#M42546</link>
      <description>&lt;P&gt;I took it out and it is still freezing unfortunately.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 03:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/860886#M42546</guid>
      <dc:creator>undercover_247</dc:creator>
      <dc:date>2023-02-26T03:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/861104#M42563</link>
      <description>&lt;P&gt;If you can post the PARMS= data set then we can see exactly what is going on.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/861104#M42563</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-02-27T14:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/861207#M42570</link>
      <description>&lt;P&gt;Thank you! Please see attached for the gm_fcs dataset created by the parameter estimates command and used in the mianalyze&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 20:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/861207#M42570</guid>
      <dc:creator>undercover_247</dc:creator>
      <dc:date>2023-02-27T20:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc mianalyze not running - what am I missing?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/861250#M42573</link>
      <description>&lt;P&gt;It looks like you have added variables to the CLASS statement in MIANALYZE that are not CLASS variables in the actual model (like year_diagnosis).&amp;nbsp; When I fix that, the MIANALYZE step runs without any errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MIANALYZE parms(classvar=level)=gm_fcs;&lt;BR /&gt;class race_collapsed sexuality_dich smoking alcohol_use rural income2 employment2 education2 breastfeed;&lt;BR /&gt;MODELEFFECTS INTERCEPT race_collapsed BMI sexuality_dich age2 agediagnosed diagnosticdelay income2 employment2 education2&lt;BR /&gt;smoking alcohol_use rural age_firstperiod preg3 breastfeed num_comorbidities year_diagnosis;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 23:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mianalyze-not-running-what-am-I-missing/m-p/861250#M42573</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-02-27T23:27:36Z</dc:date>
    </item>
  </channel>
</rss>

