<?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 How can I get coefficient 3 categories (not ordered) dependent var in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958964#M48026</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am conducting mi procedure. My outcome is 3 variables. I used fcs logistic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;step 1/* Impute missing data using logistic regression */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc mi data=mydata_mental seed=12345 nimpute=20 out=outfcs_impute;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where _age_g=6;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;class ment14d_w fall12mn_w _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w income_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fcs logistic (ment14d_w/details) logistic (income_w) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var ment14d_w fall12mn_w&amp;nbsp; _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w _ststr _psu _llcpwt income_w;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;step 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Analyze each imputed dataset using logistic regression */ This works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;********&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc logistic data = outfcs_impute;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Class ment14d_w (ref="0") fall12mn_w (ref="0") _sex (ref="1")&amp;nbsp; age65plus_w (ref="1") urbstat_w(ref="1") educag_w (ref="1")&amp;nbsp; racegr4_w(ref="1") income_w(ref="1") marital_w(ref="1") hlthpl1_w(ref="0") &amp;nbsp; persdoc3_w(ref="0")&amp;nbsp; medcost1_w(ref="0")&amp;nbsp; checkup1_w(ref="0") &amp;nbsp; exerany2_w(ref="0")/param=ref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;model ment14d_w = fall12mn_w _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w income_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w / link = glogit covb;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;by _imputation_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ods output ParameterEstimates=lgsparms CovB=lgscovb;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Pool results across imputed datasets */ (this works&amp;nbsp; but I do not get coefficient for (3 categories for dependent var)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc mianalyze parms(classvar=classval)=lgsparms;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;class ment14d_w fall12mn_w&amp;nbsp; _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w income_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;modeleffects intercept ment14d_w&amp;nbsp; fall12mn_w&amp;nbsp; _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w income_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get odds ratio (in simple step) in pooled results after mianalyze?&lt;/P&gt;&lt;P&gt;How can I get coefficient value for final output after mianalyze?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 20:31:06 GMT</pubDate>
    <dc:creator>wwm</dc:creator>
    <dc:date>2025-02-11T20:31:06Z</dc:date>
    <item>
      <title>How can I get coefficient 3 categories (not ordered) dependent var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958964#M48026</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am conducting mi procedure. My outcome is 3 variables. I used fcs logistic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;step 1/* Impute missing data using logistic regression */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc mi data=mydata_mental seed=12345 nimpute=20 out=outfcs_impute;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where _age_g=6;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;class ment14d_w fall12mn_w _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w income_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fcs logistic (ment14d_w/details) logistic (income_w) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var ment14d_w fall12mn_w&amp;nbsp; _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w _ststr _psu _llcpwt income_w;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;step 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Analyze each imputed dataset using logistic regression */ This works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;********&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc logistic data = outfcs_impute;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Class ment14d_w (ref="0") fall12mn_w (ref="0") _sex (ref="1")&amp;nbsp; age65plus_w (ref="1") urbstat_w(ref="1") educag_w (ref="1")&amp;nbsp; racegr4_w(ref="1") income_w(ref="1") marital_w(ref="1") hlthpl1_w(ref="0") &amp;nbsp; persdoc3_w(ref="0")&amp;nbsp; medcost1_w(ref="0")&amp;nbsp; checkup1_w(ref="0") &amp;nbsp; exerany2_w(ref="0")/param=ref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;model ment14d_w = fall12mn_w _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w income_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w / link = glogit covb;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;by _imputation_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ods output ParameterEstimates=lgsparms CovB=lgscovb;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Pool results across imputed datasets */ (this works&amp;nbsp; but I do not get coefficient for (3 categories for dependent var)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc mianalyze parms(classvar=classval)=lgsparms;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;class ment14d_w fall12mn_w&amp;nbsp; _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w income_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;modeleffects intercept ment14d_w&amp;nbsp; fall12mn_w&amp;nbsp; _sex&amp;nbsp; age65plus_w urbstat_w&amp;nbsp; educag_w&amp;nbsp; racegr4_w income_w marital_w hlthpl1_w &amp;nbsp; persdoc3_w&amp;nbsp; medcost1_w checkup1_w&amp;nbsp; exerany2_w;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get odds ratio (in simple step) in pooled results after mianalyze?&lt;/P&gt;&lt;P&gt;How can I get coefficient value for final output after mianalyze?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 20:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958964#M48026</guid>
      <dc:creator>wwm</dc:creator>
      <dc:date>2025-02-11T20:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get coefficient 3 categories (not ordered) dependent var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958969#M48027</link>
      <description>&lt;P&gt;There is no way to combine the odds ratios directly since there is not a reported standard error.&amp;nbsp; Instead you must combine the parameter estimates and then use a Data Step to compute the odds ratios.&amp;nbsp; Below is an example similar to your setup.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data school;
        length Program $ 9;
        input School Program $ Style $ NumStudent Count @@; 
        datalines; 
      1 regular   self 21 10  1 regular   team 22 17  1 regular   class 16 26
      1 afternoon self 23  5  1 afternoon team 26 12  1 afternoon class 21 50 
      2 .         self 22 21  2 regular   team 31 17  2 regular   class 32 26
      2 .         .    18 16  2 afternoon team 28 12  2 afternoon class 27 36 
      3 regular   self 14 15  3 regular   team 32 15  3 regular   class 31 16
      3 afternoon self 19 12  3 afternoon team 30 12  3 .         class 33 20 
      ;

      proc mi data=school out=school_imp;
        freq count;
        class school style program;
        var NumStudent school style program;
        monotone discrim (style=NumStudent);
        monotone logistic (program=school style);
        title 'Proc MI results for monotone Logistic model';
        run;

      proc logistic data=school_imp;
        by _imputation_;
        freq Count; 
        class School Program(ref=first)/param=ref;
        model Style(order=data)=School Program NumStudent / link=glogit;
		ods output ParameterEstimates=imp_parms;
        run;

     
proc mianalyze parms(classvar=classval link=glogit)=imp_parms edf=328;
class school program;
modeleffects intercept school program numstudent;
ods output parameterestimates=mianalyze_parms;
run;

data OR;
set mianalyze_parms(where=(parm ne 'intercept'));
OR=exp(estimate);
LCL_OR=exp(LCLMean);
UCL_OR=exp(UCLMean);
proc print;
var parm school program response OR LCL_OR UCL_OR;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Feb 2025 20:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958969#M48027</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-02-11T20:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get coefficient 3 categories (not ordered) dependent var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958970#M48028</link>
      <description>&lt;P&gt;How is edf number chosen? How can I set that number? Is it a random number?&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;edf=328;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 20:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958970#M48028</guid>
      <dc:creator>wwm</dc:creator>
      <dc:date>2025-02-11T20:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get coefficient 3 categories (not ordered) dependent var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958971#M48029</link>
      <description>The EDF= option is set to 328 which is the number of observations (338) minus the number of parameters (10).</description>
      <pubDate>Tue, 11 Feb 2025 20:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/958971#M48029</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-02-11T20:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get coefficient 3 categories (not ordered) dependent var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/959008#M48037</link>
      <description>&lt;P&gt;I tried to follow the codes as follow.&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;proc mianalyze parms(classvar=classval link=glogit)=imp_parms edf=328;
class school program;
modeleffects intercept school program numstudent;
ods output parameterestimates=mianalyze_parms;
run;

data OR;
set mianalyze_parms(where=(parm ne 'intercept'));
OR=exp(estimate);
LCL_OR=exp(LCLMean);
UCL_OR=exp(UCLMean);
proc print;
var parm school program response OR LCL_OR UCL_OR;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But, I received the following errors.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wwm_0-1739334382482.png" style="width: 651px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104558iB0C0BCA3C45B09B7/image-dimensions/651x114?v=v2" width="651" height="114" role="button" title="wwm_0-1739334382482.png" alt="wwm_0-1739334382482.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 04:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/959008#M48037</guid>
      <dc:creator>wwm</dc:creator>
      <dc:date>2025-02-12T04:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get coefficient 3 categories (not ordered) dependent var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/959314#M48051</link>
      <description>&lt;P&gt;Thank you. I now know how to set edf.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 18:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-coefficient-3-categories-not-ordered-dependent-var/m-p/959314#M48051</guid>
      <dc:creator>wwm</dc:creator>
      <dc:date>2025-02-15T18:17:46Z</dc:date>
    </item>
  </channel>
</rss>

