<?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: Fairlie decomposition in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337633#M63077</link>
    <description>&lt;P&gt;This is how my dataset merge2011 looks with the two variables. I did not much follow as to how I include the variables RO6 and LB18 in my &amp;amp;mvars.Let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7541iE6D8094AC59F5717/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="xx11.png" title="xx11.png" width="415" height="220" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2017 22:18:25 GMT</pubDate>
    <dc:creator>MSALKAR</dc:creator>
    <dc:date>2017-03-02T22:18:25Z</dc:date>
    <item>
      <title>Fairlie decomposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337611#M63073</link>
      <description>&lt;P&gt;This is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*fairlie decomposition 2011-2012*/&lt;BR /&gt;libname MONIKA "C:\Users\msalkar\Desktop\THESIS-MONIKA";&lt;BR /&gt;options obs=max;&lt;BR /&gt;options nolabel ls=75 ps=140;&lt;BR /&gt;%let numiterations=100;&lt;BR /&gt;%let r=2;&lt;BR /&gt;%let gendervars=male female;&lt;BR /&gt;%let k=12;&lt;/P&gt;&lt;P&gt;%let definegroup1 = MM1W MM2W MM3W;&lt;BR /&gt;%let definegroup2 = mahila_mandal VI20;&lt;BR /&gt;%let definegroup3 = religion caste;&lt;BR /&gt;%let definegroup4 = BHED INCOME occupation;&lt;BR /&gt;%let definegroup5 = MOTHERS_EDUCATION FHEADAGE;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let definegroup6 = RO6&amp;nbsp; LB18;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let labelgroup1="media_exposure";&lt;BR /&gt;%let labelgroup2="social_events";&lt;BR /&gt;%let labelgroup3="cultural_influences";&lt;BR /&gt;%let labelgroup4="household_factors";&lt;BR /&gt;%let labelgroup5="mothers_age/education";&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let labelgroup6 = "&lt;/SPAN&gt;&lt;SPAN&gt;TBA"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let mdefinegroup1 = mMM1W mMM2W mMM3W;&lt;BR /&gt;%let mdefinegroup2 = mmahila_mandal mVI20;&lt;BR /&gt;%let mdefinegroup3 = mreligion mcaste;&lt;BR /&gt;%let mdefinegroup4 = mBHED mINCOME moccupation;&lt;BR /&gt;%let mdefinegroup5 = mMOTHERS_EDUCATION mFHEADAGE;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let mdefinegroup6 = mRO6&amp;nbsp; mLB18;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let wdefinegroup1 = wMM1W wMM2W wMM3W;&lt;BR /&gt;%let wdefinegroup2 = wmahila_mandal wVI20;&lt;BR /&gt;%let wdefinegroup3 = wreligion wcaste;&lt;BR /&gt;%let wdefinegroup4 = wBHED wINCOME woccupation;&lt;BR /&gt;%let wdefinegroup5 = wMOTHERS_EDUCATION wFHEADAGE;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let wdefinegroup6 = w&lt;/SPAN&gt;&lt;SPAN&gt;RO6&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;w&lt;/SPAN&gt;&lt;SPAN&gt;LB18&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let vars= &amp;amp;definegroup1 &amp;amp;definegroup2 &amp;amp;definegroup3 &amp;amp;definegroup4 &amp;amp;definegroup5 &amp;nbsp;&lt;SPAN&gt;&amp;amp;definegroup6&lt;/SPAN&gt;;&lt;BR /&gt;%let mvars= &amp;amp;mdefinegroup1 &amp;amp;mdefinegroup2 &amp;amp;mdefinegroup3 &amp;amp;mdefinegroup4 &amp;amp;mdefinegroup5 &amp;nbsp;&lt;SPAN&gt;&amp;amp;mdefinegroup6&lt;/SPAN&gt;;&lt;BR /&gt;%let wvars= &amp;amp;wdefinegroup1 &amp;amp;wdefinegroup2 &amp;amp;wdefinegroup3 &amp;amp;wdefinegroup4 &amp;amp;wdefinegroup5 &amp;nbsp;&lt;SPAN&gt;&amp;amp;wdefinegroup6&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data monika.merge2012;&lt;BR /&gt;set monika.merge2011;&lt;BR /&gt;mergeobs=1;&lt;BR /&gt;y=child_immunization;&lt;BR /&gt;if y=. or MM1W=. or MM2W=. or MM3W=. or INCOME=. or FHEADAGE=. or VI20=. or mahila_mandal=. or&lt;BR /&gt;religion=. or caste=. or occupation=. or mothers_education=. then delete;&lt;BR /&gt;if wt=. or wt&amp;lt;=0 then delete;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data monika.regdata;&lt;BR /&gt;set monika.merge2012;&lt;BR /&gt;if male=1 or female=1; run;&lt;/P&gt;&lt;P&gt;data monika.male (keep=ym wtm &amp;amp;mvars mergeobs);&lt;BR /&gt;set monika.merge2012 ;&lt;BR /&gt;array varsa(&amp;amp;k) &amp;amp;vars;&lt;BR /&gt;array mvarsa(&amp;amp;k) &amp;amp;mvars;&lt;BR /&gt;ym=y;&lt;BR /&gt;wtm=wt;&lt;BR /&gt;do i=1 to &amp;amp;k;&lt;BR /&gt;mvarsa(i)=varsa(i);&lt;BR /&gt;end;&lt;BR /&gt;if male=1 then output; run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data monika.female (keep=yw wtw &amp;amp;wvars mergeobs);&lt;BR /&gt;set monika.merge2012;&lt;BR /&gt;array varsa(&amp;amp;k) &amp;amp;vars;&lt;BR /&gt;array wvarsa(&amp;amp;k) &amp;amp;wvars;&lt;BR /&gt;yw=y;&lt;BR /&gt;wtw=wt;&lt;BR /&gt;do i=1 to &amp;amp;k;&lt;BR /&gt;wvarsa(i)=varsa(i);&lt;BR /&gt;end;&lt;BR /&gt;if female=1 then output; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running this I do not get an error but in the data set the values of the variables RO6 and LB18 are not seen. Also, in my log window I do not see any errors but I am not get the any output. So i am not sure if my cide is working. I would appreciate your help. Below is the dataset;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7525i99C26908CF1C71EC/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="xxx.png" title="xxx.png" width="475" height="370" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 21:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337611#M63073</guid>
      <dc:creator>MSALKAR</dc:creator>
      <dc:date>2017-03-02T21:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fairlie decomposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337616#M63074</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;K is 12. How many variables does your array have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 21:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337616#M63074</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-02T21:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fairlie decomposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337628#M63075</link>
      <description>&lt;P&gt;The variables are not in &amp;amp;mvars, and so are not in the keep list. I guess you mean mRO6 and mLB18.&lt;/P&gt;
&lt;P&gt;To recreate your results, we need some example data from merge2011. Please post it in a data step with datalines.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337628#M63075</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-02T22:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fairlie decomposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337629#M63076</link>
      <description>In my actual code i have put K=14, but yet it is not working.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 02 Mar 2017 22:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337629#M63076</guid>
      <dc:creator>MSALKAR</dc:creator>
      <dc:date>2017-03-02T22:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fairlie decomposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337633#M63077</link>
      <description>&lt;P&gt;This is how my dataset merge2011 looks with the two variables. I did not much follow as to how I include the variables RO6 and LB18 in my &amp;amp;mvars.Let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7541iE6D8094AC59F5717/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="xx11.png" title="xx11.png" width="415" height="220" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337633#M63077</guid>
      <dc:creator>MSALKAR</dc:creator>
      <dc:date>2017-03-02T22:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fairlie decomposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337634#M63078</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;SPAN&gt; Please post it in a data step with datalines.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposition/m-p/337634#M63078</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-02T22:18:00Z</dc:date>
    </item>
  </channel>
</rss>

