<?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: How to get pooled results for PROC PLM on imputed data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-pooled-results-for-PROC-PLM-on-imputed-data/m-p/414014#M21722</link>
    <description>&lt;P&gt;You could do something similar to the example below (it assumes the Proc MI step was already run).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* Getting Started Example&lt;BR /&gt; Generate Data */&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value ResponseCode 1 = 'Very_Unsatisfied'&lt;BR /&gt; 2 = 'Unsatisfied'&lt;BR /&gt; 3 = 'Neutral'&lt;BR /&gt; 4 = 'Satisfied'&lt;BR /&gt; 5 = 'Very_Satisfied';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value UserCode 1 = 'New Customer'&lt;BR /&gt; 0 = 'Renewal Customer';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value SchoolCode 1 = 'Middle School'&lt;BR /&gt; 2 = 'High School';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value DeptCode 0 = 'Faculty'&lt;BR /&gt; 1 = 'Admin/Guidance';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;data SIS_Survey;&lt;BR /&gt; format Response ResponseCode.;&lt;BR /&gt; format NewUser UserCode.;&lt;BR /&gt; format SchoolType SchoolCode.;&lt;BR /&gt; format Department DeptCode.;&lt;BR /&gt; do _imputation_=1 to 2;&lt;BR /&gt; drop j;&lt;BR /&gt; retain seed1 111;&lt;BR /&gt; retain seed2 222;&lt;BR /&gt; retain seed3 333;&lt;/P&gt;
&lt;P&gt;State = 'GA';&lt;/P&gt;
&lt;P&gt;NewUser = 1;&lt;BR /&gt; do School=1 to 71;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;NewUser = 0;&lt;BR /&gt; do School=72 to 134;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;State = 'NC';&lt;/P&gt;
&lt;P&gt;NewUser = 1;&lt;BR /&gt; do School = 135 to 218;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;NewUser = 0;&lt;BR /&gt; do School = 219 to 274;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;State = 'SC';&lt;/P&gt;
&lt;P&gt;NewUser = 1;&lt;BR /&gt; do School = 275 to 328;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;NewUser = 0;&lt;BR /&gt; do School = 329 to 370;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; end;&lt;BR /&gt;end;&lt;BR /&gt; run;&lt;BR /&gt; title 'School Information System Survey';&lt;BR /&gt;/*Run SURVEYLOGISTIC by _IMPUTATION_*/&lt;BR /&gt;proc surveylogistic data=SIS_Survey;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;class department;&lt;BR /&gt;model Response=department/covb;&lt;BR /&gt;strata State NewUser;&lt;BR /&gt;cluster School;&lt;BR /&gt;weight SamplingWeight;&lt;BR /&gt;store work.test;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc plm restore=work.test;&lt;BR /&gt;estimate 'dept1' department 1/category=separate;&lt;BR /&gt;estimate 'dept2' department -1/category=separate;&lt;BR /&gt;estimate 'dept1 v dept2' department 2/category=separate;&lt;BR /&gt;ods output Estimates=est_ds;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=est_ds;&lt;BR /&gt;by response label _imputation_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc mianalyze data=est_ds;&lt;BR /&gt;by response label;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2017 14:37:59 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2017-11-16T14:37:59Z</dc:date>
    <item>
      <title>How to get pooled results for PROC PLM on imputed data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-pooled-results-for-PROC-PLM-on-imputed-data/m-p/413755#M21715</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two interaction terms in my model and&amp;nbsp;would like to run a simple slope analysis using PROC PLM. I already got pooled results for the mail effect but am having trouble with the PROC PLM part. &lt;STRONG&gt;Is there a way to get pooled results for PROC PLM on imputed data?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see my code below. Please note that I used PROC SURVEYLOGISTIC because the data is weighted and the outcome is ordinal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(proc mi...........truncated)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data=perm.19m2;&lt;BR /&gt;strata RAESTRAT; cluster RAEHSAMP; weight R11WTRESP;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;model DV_r (order=data) = R11AGEY_B | stress&amp;nbsp;&lt;BR /&gt;RAEDYRS h11itot self_health R11WGIWK R11JCTEN&lt;BR /&gt;computer pres_retire&amp;nbsp; young_promo less_demand physical_eff&lt;BR /&gt;gender race2_b race2_his race2_o&lt;BR /&gt;occupation_1 occupation_2 occupation_3 reduce_hrs part_full&lt;BR /&gt;/link=clogit clodds expb rsq;&lt;/P&gt;&lt;P&gt;ods output parameterestimates = perm.19m2print;&lt;BR /&gt;store perm.test; run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(proc mianalyze....truncated)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods graphics on;&lt;BR /&gt;&lt;STRONG&gt;proc plm&lt;/STRONG&gt; restore = perm.test;&lt;BR /&gt;estimate 'stress slope, R11AGEY_B = mean-sd' stress 1 stress*R11AGEY_B 2.71&lt;BR /&gt;RAEDYRS 1 h11itot 1 self_health 1 R11WGIWK 1 R11JCTEN 1&lt;BR /&gt;computer 1 pres_retire 1 young_promo 1 less_demand 1 physical_eff 1&lt;BR /&gt;gender 1 race2_b 1 race2_his 1 race2_o 1&lt;BR /&gt;occupation_1 1 occupation_2 1 occupation_3 1 reduce_hrs 1 part_full 1,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'stress slope, R11AGEY_B = mean' stress 1 stress*R11AGEY_B 2.73&lt;BR /&gt;RAEDYRS 1 h11itot 1 self_health 1 R11WGIWK 1 R11JCTEN 1&lt;BR /&gt;computer 1 pres_retire 1 young_promo 1 less_demand 1 physical_eff 1&lt;BR /&gt;gender 1 race2_b 1 race2_his 1 race2_o 1&lt;BR /&gt;occupation_1 1 occupation_2 1 occupation_3 1 reduce_hrs 1 part_full 1,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'stress slope, R11AGEY_B = mean+sd' RAEDYRS 1 stress 1 stress*R11AGEY_B 2.75&lt;BR /&gt;RAEDYRS 1 h11itot 1 self_health 1 R11WGIWK 1 R11JCTEN 1&lt;BR /&gt;computer 1 pres_retire 1 young_promo 1 less_demand 1 physical_eff 1&lt;BR /&gt;gender 1 race2_b 1 race2_his 1 race2_o 1&lt;BR /&gt;occupation_1 1 occupation_2 1 occupation_3 1 reduce_hrs 1 part_full 1 /e ;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(and then how to pool these results?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate your help!&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>Wed, 15 Nov 2017 17:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-pooled-results-for-PROC-PLM-on-imputed-data/m-p/413755#M21715</guid>
      <dc:creator>ejay0503</dc:creator>
      <dc:date>2017-11-15T17:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pooled results for PROC PLM on imputed data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-pooled-results-for-PROC-PLM-on-imputed-data/m-p/414014#M21722</link>
      <description>&lt;P&gt;You could do something similar to the example below (it assumes the Proc MI step was already run).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* Getting Started Example&lt;BR /&gt; Generate Data */&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value ResponseCode 1 = 'Very_Unsatisfied'&lt;BR /&gt; 2 = 'Unsatisfied'&lt;BR /&gt; 3 = 'Neutral'&lt;BR /&gt; 4 = 'Satisfied'&lt;BR /&gt; 5 = 'Very_Satisfied';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value UserCode 1 = 'New Customer'&lt;BR /&gt; 0 = 'Renewal Customer';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value SchoolCode 1 = 'Middle School'&lt;BR /&gt; 2 = 'High School';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value DeptCode 0 = 'Faculty'&lt;BR /&gt; 1 = 'Admin/Guidance';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;data SIS_Survey;&lt;BR /&gt; format Response ResponseCode.;&lt;BR /&gt; format NewUser UserCode.;&lt;BR /&gt; format SchoolType SchoolCode.;&lt;BR /&gt; format Department DeptCode.;&lt;BR /&gt; do _imputation_=1 to 2;&lt;BR /&gt; drop j;&lt;BR /&gt; retain seed1 111;&lt;BR /&gt; retain seed2 222;&lt;BR /&gt; retain seed3 333;&lt;/P&gt;
&lt;P&gt;State = 'GA';&lt;/P&gt;
&lt;P&gt;NewUser = 1;&lt;BR /&gt; do School=1 to 71;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;NewUser = 0;&lt;BR /&gt; do School=72 to 134;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;State = 'NC';&lt;/P&gt;
&lt;P&gt;NewUser = 1;&lt;BR /&gt; do School = 135 to 218;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;NewUser = 0;&lt;BR /&gt; do School = 219 to 274;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;State = 'SC';&lt;/P&gt;
&lt;P&gt;NewUser = 1;&lt;BR /&gt; do School = 275 to 328;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;NewUser = 0;&lt;BR /&gt; do School = 329 to 370;&lt;/P&gt;
&lt;P&gt;call rantbl( seed1, .45, .55, SchoolType );&lt;/P&gt;
&lt;P&gt;Department = 0;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 25 + x * 2;&lt;BR /&gt; do j=1 to 2;&lt;BR /&gt; if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .16, .21, .30, .24, .09, Response);&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .18, .23, .30, .22, .07, Response);&lt;BR /&gt; output; end;&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;Department = 1;&lt;BR /&gt; call rannor( seed3, x );&lt;BR /&gt; SamplingWeight = 15 + x * 1.5;&lt;/P&gt;
&lt;P&gt;if ( SchoolType = 1 ) then&lt;BR /&gt; call rantbl( seed2, .10, .15, .33, .28, .14, Response );&lt;BR /&gt; else&lt;BR /&gt; call rantbl( seed2, .13, .20, .30, .26, .11, Response);&lt;BR /&gt; output; output;&lt;BR /&gt; end;&lt;BR /&gt;end;&lt;BR /&gt; run;&lt;BR /&gt; title 'School Information System Survey';&lt;BR /&gt;/*Run SURVEYLOGISTIC by _IMPUTATION_*/&lt;BR /&gt;proc surveylogistic data=SIS_Survey;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;class department;&lt;BR /&gt;model Response=department/covb;&lt;BR /&gt;strata State NewUser;&lt;BR /&gt;cluster School;&lt;BR /&gt;weight SamplingWeight;&lt;BR /&gt;store work.test;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc plm restore=work.test;&lt;BR /&gt;estimate 'dept1' department 1/category=separate;&lt;BR /&gt;estimate 'dept2' department -1/category=separate;&lt;BR /&gt;estimate 'dept1 v dept2' department 2/category=separate;&lt;BR /&gt;ods output Estimates=est_ds;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=est_ds;&lt;BR /&gt;by response label _imputation_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc mianalyze data=est_ds;&lt;BR /&gt;by response label;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 14:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-pooled-results-for-PROC-PLM-on-imputed-data/m-p/414014#M21722</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2017-11-16T14:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pooled results for PROC PLM on imputed data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-pooled-results-for-PROC-PLM-on-imputed-data/m-p/416912#M21883</link>
      <description>&lt;P&gt;Your answer was helpful and did get me get the pulled results!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very very much for your help. I really appreciate it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 23:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-pooled-results-for-PROC-PLM-on-imputed-data/m-p/416912#M21883</guid>
      <dc:creator>ejay0503</dc:creator>
      <dc:date>2017-11-28T23:21:52Z</dc:date>
    </item>
  </channel>
</rss>

