<?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 decomposiiton method in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposiiton-method/m-p/337108#M63051</link>
    <description>&lt;P&gt;Hello Reeza,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much. My code works now. Actually I have never worked on stata so I have no idea how it works. And since I need to finish my thesis I do not have the time to learn a new software. I will base of my analysis off this code and try to work with it. I may have some more posts regarding this test and would really appreciate your help. Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2017 19:21:16 GMT</pubDate>
    <dc:creator>MSALKAR</dc:creator>
    <dc:date>2017-03-01T19:21:16Z</dc:date>
    <item>
      <title>Fairlie decomposiiton method</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposiiton-method/m-p/336783#M63034</link>
      <description>&lt;P&gt;data monika.male (keep=ym wtm &amp;amp;mvars mergeobs);&lt;BR /&gt;set monika.mergenew3 ;&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;ERROR: Too few variables defined for the dimension(s) specified for the&lt;BR /&gt;array varsa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I solve this error? I am attaching the entire code of Fairlie decomposition. I am working on my thesis and would greatly appreciate any help on this. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 23:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposiiton-method/m-p/336783#M63034</guid>
      <dc:creator>MSALKAR</dc:creator>
      <dc:date>2017-02-28T23:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fairlie decomposiiton method</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposiiton-method/m-p/336788#M63035</link>
      <description>&lt;P&gt;%let vars= &amp;amp;definegroup1 &amp;amp;definegroup2 &amp;amp;definegroup3 &amp;amp;definegroup4 &amp;amp;definegroup5;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not the 6th group? I suspect that's your error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following is my opinion - feel free to disregard it all &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, this is an efficient way to code. You're hardcoding a lot of things that you should be doing dynamically. Why assign the variables to new variables without doing anything to them? And if you're renaming via a prefix there are technically easier ways.&lt;/P&gt;
&lt;P&gt;HOWEVER, if you understand this and it works for you, then work with it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using someone else's code I have two suggestions:&lt;/P&gt;
&lt;P&gt;1. Make sure to work through a known example to ensure it gives you the numbers expected.&lt;/P&gt;
&lt;P&gt;2. Comment every line or section to ensure you understand the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 23:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposiiton-method/m-p/336788#M63035</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-28T23:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fairlie decomposiiton method</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposiiton-method/m-p/337108#M63051</link>
      <description>&lt;P&gt;Hello Reeza,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much. My code works now. Actually I have never worked on stata so I have no idea how it works. And since I need to finish my thesis I do not have the time to learn a new software. I will base of my analysis off this code and try to work with it. I may have some more posts regarding this test and would really appreciate your help. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 19:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fairlie-decomposiiton-method/m-p/337108#M63051</guid>
      <dc:creator>MSALKAR</dc:creator>
      <dc:date>2017-03-01T19:21:16Z</dc:date>
    </item>
  </channel>
</rss>

