<?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 Surveylogistic and Proc MIANALYZE in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646743#M31029</link>
    <description>&lt;P&gt;Thank you for this suggestion. However, the data have already been multiply imputed using suggestions by Berglund and Heeringa(2014). I found this paper&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings15/3320-2015.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings15/3320-2015.pdf&lt;/A&gt;&amp;nbsp;that uses proc surveylogistic and proc mianalyze, but with a dichotomized dependent variable. I am trying to understand how to combine estimates from a multinomial regression.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 15:01:20 GMT</pubDate>
    <dc:creator>KR123</dc:creator>
    <dc:date>2020-05-11T15:01:20Z</dc:date>
    <item>
      <title>Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646565#M31023</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am trying to combine estimates for a &lt;STRONG&gt;multinomial logistic mode&lt;/STRONG&gt;l with imputed data. I cannot figure out how to do this when I run the model with proc surveylogistic . I would like to have the estimate and the odds ratio. I've attached part of the output I get and you can see the problem is I'm not getting full output from mianalzye.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my non-working code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;surveylogistic&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;=may &lt;SPAN&gt;order&lt;/SPAN&gt;=formatted;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;strata&lt;/SPAN&gt; sch_id;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weight&lt;/SPAN&gt; bystuwt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;class&lt;/SPAN&gt; educexp (&lt;SPAN&gt;ref&lt;/SPAN&gt;=&lt;SPAN&gt;"3"&lt;/SPAN&gt;) baserace (&lt;SPAN&gt;ref&lt;/SPAN&gt;=&lt;SPAN&gt;"4"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;model&lt;/SPAN&gt; educexp=baserace bmathse /&lt;SPAN&gt;link&lt;/SPAN&gt;=glogit &lt;SPAN&gt;covb&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;domain&lt;/SPAN&gt; _imputation_;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ods&lt;/SPAN&gt; &lt;SPAN&gt;output&lt;/SPAN&gt; ParameterEstimates=lgsparms (&lt;SPAN&gt;where&lt;/SPAN&gt;=(_imputation_ ne &lt;SPAN&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt; ));&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;mianalyze&lt;/STRONG&gt;&lt;/SPAN&gt; parms(classvar=classval)=lgsparms ;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;class&lt;/SPAN&gt; educexp baserace;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;modeleffects&lt;/SPAN&gt; Intercept baserace bmathse;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 01:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646565#M31023</guid>
      <dc:creator>KR123</dc:creator>
      <dc:date>2020-05-11T01:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646575#M31024</link>
      <description>&lt;P&gt;To impute missing values in Survey analysis, use PROC SURVEYIMPUTE and create imputed JK weights.&lt;/P&gt;
&lt;P&gt;Then use these imputed JK replicate weights with PROC Surveylogistic to fit the generalized survey logistic model.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please refer this paper:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings16/SAS3520-2016.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings16/SAS3520-2016.pdf&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 06:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646575#M31024</guid>
      <dc:creator>gcjfernandez</dc:creator>
      <dc:date>2020-05-11T06:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646743#M31029</link>
      <description>&lt;P&gt;Thank you for this suggestion. However, the data have already been multiply imputed using suggestions by Berglund and Heeringa(2014). I found this paper&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings15/3320-2015.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings15/3320-2015.pdf&lt;/A&gt;&amp;nbsp;that uses proc surveylogistic and proc mianalyze, but with a dichotomized dependent variable. I am trying to understand how to combine estimates from a multinomial regression.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 15:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646743#M31029</guid>
      <dc:creator>KR123</dc:creator>
      <dc:date>2020-05-11T15:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646762#M31031</link>
      <description>&lt;P&gt;You should use the BY statement in SURVEYLOGISTIC and not the DOMAIN statement when you have multiply imputed data.&amp;nbsp; The DOMAIN statement would only apply when the subgroup sample sizes are random variables (i.e. not part of the sample design itself).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as using MIANALYZE for a generalized logit model, you should be able to follow the example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*Sample data set that assumes the imputation has already been done*/&lt;BR /&gt;data test;&lt;BR /&gt;seed=2534565;&lt;BR /&gt;do _imputation_=1 to 2;&lt;BR /&gt;do subj=1 to 60;&lt;BR /&gt;do a=1 to 3;&lt;BR /&gt;do rep=1 to 3;&lt;BR /&gt;ind1=ranuni(seed)*subj;&lt;BR /&gt;int=-1+rannor(31221)*_imputation_;&lt;BR /&gt;logit=int + .05*ind1-.67*a;&lt;BR /&gt;p=exp(-logit)/(1+exp(-logit));&lt;BR /&gt;if ranuni(seed)&amp;gt;p then y=1;&lt;BR /&gt;else if ranuni(314)&amp;gt;.5 then y=2;&lt;BR /&gt;else y=3;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;ods trace on;&lt;BR /&gt;proc surveylogistic data=test;&lt;BR /&gt;class y a;&lt;BR /&gt;model y=ind1 a/link=glogit;&lt;BR /&gt;by _Imputation_;&lt;BR /&gt;ods output parameterestimates=parms;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;/*Need to sort by the different levels of the response variable so that MIANALYZE will*/&lt;BR /&gt;/*give the output for each logit function*/&lt;BR /&gt;proc sort data=parms;&lt;BR /&gt;by response _imputation_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc mianalyze parms(classvar=classval)=parms;&lt;BR /&gt;class a;&lt;BR /&gt;modeleffects intercept a ind1;&lt;BR /&gt;by response;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 15:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646762#M31031</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-05-11T15:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646871#M31046</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt;&amp;nbsp;, that worked! Do you happen to know how to get pooled odds ratio in this scenario?&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 19:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/646871#M31046</guid>
      <dc:creator>KR123</dc:creator>
      <dc:date>2020-05-11T19:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/669655#M31985</link>
      <description>&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;I saw you gave the response to this post just a few months ago. I've been struggling with how to output the OR of interaction term from the pooled multiple imputation estimates.&lt;/P&gt;&lt;P&gt;For example, lets assume that B is a categorical variables and Ind1 is a categorical variable with three levels. If there's an interaction between&amp;nbsp; B and Ind1 and i want to find the OR of the interaction, taking the exponential of b*Ind1 as in the dataset does not give me the OR of the interaction at different level of the exposure. Do you have an idea how to get OR from a pooled imputed estimates in which the model has an interaction term?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mianalyze parms(classvar=classval)=parms;
class a b Ind1;
modeleffects intercept a b ind1 b*Ind1;
by response;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 19:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/669655#M31985</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-07-15T19:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/669711#M31989</link>
      <description>&lt;P&gt;There a couple of ways you could do this, but I think the easiest way would be to use the LSMEANS statement and combine the differences.&amp;nbsp; You could then exponentiate those differences to get the Odds Ratios.&amp;nbsp; Below is what I have in mind.&lt;/P&gt;
&lt;P&gt;/*Assume that the imputation has already been done*/&lt;BR /&gt;data test;&lt;BR /&gt;seed=2534565;&lt;BR /&gt;do _imputation_=1 to 5;&lt;BR /&gt;do a=1 to 3;&lt;BR /&gt;do b=1 to 2;&lt;BR /&gt;do i=1 to 250;&lt;BR /&gt;x1=ranuni(21);&lt;BR /&gt;logit=-2 + .05*a+.45*b+.88*a*b;&lt;BR /&gt;p=exp(-logit)/(1+exp(-logit));&lt;BR /&gt;if ranuni(seed)&amp;gt;p then y=1; else y=0;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;proc surveylogistic data=test;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;class a/param=glm;&lt;BR /&gt;model y=a|x1;&lt;BR /&gt;lsmeans a/at x1=.2 diff;&lt;BR /&gt;lsmeans a/at x1=.4 diff;&lt;BR /&gt;ods output diffs=diff_ds;&lt;BR /&gt;run;&lt;BR /&gt;data diff2;&lt;BR /&gt;set diff_ds;&lt;BR /&gt;comparison=effect||'='||trim(left(a))||' vs '||left(effect)||'='||left(_a);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc sort data=diff2;&lt;BR /&gt;by comparison _imputation_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc mianalyze data=diff2;&lt;BR /&gt;by comparison;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;ods output parameterestimates=mianalyze_parms;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data OR;&lt;BR /&gt;set mianalyze_parms;&lt;BR /&gt;OR=exp(estimate);&lt;BR /&gt;LCL_OR=exp(LCLMean);&lt;BR /&gt;UCL_OR=exp(UCLMean);&lt;BR /&gt;proc print;&lt;BR /&gt;var comparison OR LCL_OR UCL_OR;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 20:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/669711#M31989</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-07-15T20:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/669741#M31991</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks. This part if the code is a little confusing&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc surveylogistic data=test;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by _imputation_;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class a/param=glm;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model y=a|x1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lsmeans a/at x1=.2 diff;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lsmeans a/at x1=.4 diff;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I assume you got x1= 0.2 from intercept and x1 =0.4 from the coefficient of a-b.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Since my predictors are all categorical, why can't i do something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lsmeans a/at x1=0 diff; to denote the first level of my cat variables&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lsmeans a/at x1=1 diff; to denote the second level of my cat variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 22:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/669741#M31991</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-07-15T22:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/670001#M31996</link>
      <description>&lt;P&gt;Hello Rob, I outputted the interaction effects of the 50 imputed variables in a dataset&lt;/P&gt;&lt;P&gt;Please how do i get the pooled estimate of these estimates.&lt;/P&gt;&lt;P&gt;Here's the snip of my code. Please i need help or is there a contact of anyone in SAS who can help? I can't find a contact on the sas.com website. The SAS document on this topic did not release how to implement using proc mianalyse to pool estimates of interaction term.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveylogistic data =newnsch3c NAMELEN=100;
BY _Imputation_;
class    smokes(Ref= '0')   composite (ref='0') /param=glm ;
strata Fipsst;
cluster hhid;
weight fwc;
Model asthma (event ='1') =  smokes composite smokes*composite ;
lsmeans smokes*composite/ diff;
ods output diffs=diff_ds;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;smokes has 2 levels (0 and 1) while composite has (0,1,2,3).The above code gave me a dataset with a structure like this. How do i pool these effects together using proc mianalyze.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inter.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47241i10FC0D15BB9C24DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Inter.JPG" alt="Inter.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 21:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/670001#M31996</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-07-16T21:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/670193#M32009</link>
      <description>&lt;P&gt;You have to set up the comparison variable the same way as in the case of an interaction with a continuous variable except you will need to cover both variables.&amp;nbsp; Here is a simple example with random data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data outmi;&lt;BR /&gt;do _imputation_=1 to 3;&lt;BR /&gt;do trt='test','trt1','trt2';&lt;BR /&gt;do b=1 to 3;&lt;BR /&gt;do rep=1 to 110;&lt;BR /&gt;trtn+1;&lt;BR /&gt;if ranuni(4123)&amp;gt;.5 then y=1; else y=0;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;/*Assuming the imputation has already been done*/ &lt;BR /&gt;proc surveylogistic data=outmi;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;class trt b/param=glm;&lt;BR /&gt;model y=trt|b;&lt;BR /&gt;lsmeans trt|b/diff;&lt;BR /&gt;ods output diffs=lsmeans_diffs;&lt;BR /&gt;run;&lt;BR /&gt;data diff2;&lt;BR /&gt;set lsmeans_diffs;&lt;BR /&gt;comparison=trt||''||trim(left(b))||' vs '||left(_trt)||''||left(_b);&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=diff2;&lt;BR /&gt;by comparison _imputation_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc mianalyze data=diff2;&lt;BR /&gt;by comparison;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;ods output ParameterEstimates=MI_parms;&lt;BR /&gt;run;&lt;BR /&gt;data OR;&lt;BR /&gt;set MI_parms;&lt;BR /&gt;OR=exp(estimate);&lt;BR /&gt;lower_or=exp(LCLMean);&lt;BR /&gt;upper_or=exp(UCLMean);&lt;BR /&gt;keep comparison OR lower_or upper_or;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc print;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 19:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/670193#M32009</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-07-17T19:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Proc MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/670224#M32010</link>
      <description>Thank you so much. This worked and was shorter.&lt;BR /&gt;I solved the problem by creating a dataset containing smoke 1 vs 0, and then creating 4 dataset from that have the parameter estimates of each level of my composite variable. I then used proc mianalyze on each of the 4 datasets and each dataset gave me the OR. Longer but it did it.&lt;BR /&gt;Thanks so much!</description>
      <pubDate>Fri, 17 Jul 2020 20:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Proc-MIANALYZE/m-p/670224#M32010</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-07-17T20:53:08Z</dc:date>
    </item>
  </channel>
</rss>

