<?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 Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338060#M17830</link>
    <description>&lt;P&gt;Next time please post the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like one of the data set does not have any numerical variables. The error is probably one of these line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;use monika.covar;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into V;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC1DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC2DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC3DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont4;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC4DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC5DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont6;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC6DB;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2017 22:46:56 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-03-03T22:46:56Z</dc:date>
    <item>
      <title>fairlie decomposition</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338056#M17829</link>
      <description>&lt;P&gt;Hello, I keep getting these two error messages when I run my simulation. I cannot figure out where the error is. I am just posting some part of my code where I feel there may be an error. I know the data looks long but it is pretty much just same line with different numbers. So please go through. If required I will post the complete code. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: (execution) Matrix has not been set to a value.&lt;/P&gt;&lt;P&gt;ERROR: No numeric variables in the dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data monika.combined;&lt;BR /&gt;set monika.combined;&lt;BR /&gt;%let newvars= &amp;amp;group1 &amp;amp;group2 &amp;amp;group3 &amp;amp;group4 &amp;amp;group5 &amp;amp;group6;&lt;BR /&gt;array newcoefsa (&amp;amp;k) &amp;amp;group1 &amp;amp;group2 &amp;amp;group3 &amp;amp;group4 &amp;amp;group5 &amp;amp;group6;&lt;/P&gt;&lt;P&gt;array x0a(&amp;amp;k) &amp;amp;wgroup1 &amp;amp;wgroup2 &amp;amp;wgroup3 &amp;amp;wgroup4 &amp;amp;wgroup5 &amp;amp;wgroup6;&lt;BR /&gt;array x1a(&amp;amp;k) &amp;amp;mgroup1 &amp;amp;wgroup2 &amp;amp;wgroup3 &amp;amp;wgroup4 &amp;amp;wgroup5 &amp;amp;wgroup6;&lt;BR /&gt;array x2a(&amp;amp;k) &amp;amp;mgroup1 &amp;amp;mgroup2 &amp;amp;wgroup3 &amp;amp;wgroup4 &amp;amp;wgroup5 &amp;amp;wgroup6;&lt;BR /&gt;array x3a(&amp;amp;k) &amp;amp;mgroup1 &amp;amp;mgroup2 &amp;amp;mgroup3 &amp;amp;wgroup4 &amp;amp;wgroup5 &amp;amp;wgroup6;&lt;BR /&gt;array x4a(&amp;amp;k) &amp;amp;mgroup1 &amp;amp;mgroup2 &amp;amp;mgroup3 &amp;amp;mgroup4 &amp;amp;wgroup5 &amp;amp;wgroup6;&lt;BR /&gt;array x5a(&amp;amp;k) &amp;amp;mgroup1 &amp;amp;mgroup2 &amp;amp;mgroup3 &amp;amp;mgroup4 &amp;amp;mgroup5 &amp;amp;wgroup6;&lt;BR /&gt;array x6a(&amp;amp;k) &amp;amp;mgroup1 &amp;amp;mgroup2 &amp;amp;mgroup3 &amp;amp;mgroup4 &amp;amp;mgroup5 &amp;amp;mgroup6;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xb0=intercept;&lt;BR /&gt;xb1=intercept;&lt;BR /&gt;xb2=intercept;&lt;BR /&gt;xb3=intercept;&lt;BR /&gt;xb4=intercept;&lt;BR /&gt;xb5=intercept;&lt;BR /&gt;xb6=intercept;&lt;/P&gt;&lt;P&gt;* perform white to minority variable distribution switches;&lt;BR /&gt;do i=1 to &amp;amp;k;&lt;BR /&gt;xb0=xb0+x0a(i)*newcoefsa(i);&lt;BR /&gt;xb1=xb1+x1a(i)*newcoefsa(i);&lt;BR /&gt;xb2=xb2+x2a(i)*newcoefsa(i);&lt;BR /&gt;xb3=xb3+x3a(i)*newcoefsa(i);&lt;BR /&gt;xb4=xb4+x4a(i)*newcoefsa(i);&lt;BR /&gt;xb5=xb5+x5a(i)*newcoefsa(i);&lt;BR /&gt;xb6=xb6+x6a(i)*newcoefsa(i);&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;pred0=exp(xb0)/(1+exp(xb0));&lt;BR /&gt;pred1=exp(xb1)/(1+exp(xb1));&lt;BR /&gt;pred2=exp(xb2)/(1+exp(xb2));&lt;BR /&gt;pred3=exp(xb3)/(1+exp(xb3));&lt;BR /&gt;pred4=exp(xb4)/(1+exp(xb4));&lt;BR /&gt;pred5=exp(xb5)/(1+exp(xb5));&lt;BR /&gt;pred6=exp(xb6)/(1+exp(xb6));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;fhat0=pred0*(1-pred0);&lt;BR /&gt;fhat1=pred1*(1-pred1);&lt;BR /&gt;fhat2=pred2*(1-pred2);&lt;BR /&gt;fhat3=pred3*(1-pred3);&lt;BR /&gt;fhat4=pred4*(1-pred4);&lt;BR /&gt;fhat5=pred5*(1-pred5);&lt;BR /&gt;fhat6=pred6*(1-pred6);&lt;/P&gt;&lt;P&gt;dc1db0=fhat0*one-fhat1*one;&lt;BR /&gt;dc2db0=fhat1*one-fhat2*one;&lt;BR /&gt;dc3db0=fhat2*one-fhat3*one;&lt;BR /&gt;dc4db0=fhat3*one-fhat4*one;&lt;BR /&gt;dc5db0=fhat4*one-fhat5*one;&lt;BR /&gt;dc6db0=fhat5*one-fhat6*one;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;array dc1dba(&amp;amp;k) dc1db1-dc1db&amp;amp;k;&lt;BR /&gt;array dc2dba(&amp;amp;k) dc2db1-dc2db&amp;amp;k;&lt;BR /&gt;array dc3dba(&amp;amp;k) dc3db1-dc3db&amp;amp;k;&lt;BR /&gt;array dc4dba(&amp;amp;k) dc4db1-dc4db&amp;amp;k;&lt;BR /&gt;array dc5dba(&amp;amp;k) dc5db1-dc5db&amp;amp;k;&lt;BR /&gt;array dc6dba(&amp;amp;k) dc6db1-dc6db&amp;amp;k;&lt;/P&gt;&lt;P&gt;* create other variable components to derivatives;&lt;BR /&gt;do i=1 to &amp;amp;k;&lt;BR /&gt;dc1dba(i)=fhat0*x0a(i)-fhat1*x1a(i);&lt;BR /&gt;dc2dba(i)=fhat1*x1a(i)-fhat2*x2a(i);&lt;BR /&gt;dc3dba(i)=fhat2*x2a(i)-fhat3*x3a(i);&lt;BR /&gt;dc4dba(i)=fhat3*x3a(i)-fhat4*x4a(i);&lt;BR /&gt;dc5dba(i)=fhat4*x4a(i)-fhat5*x5a(i);&lt;BR /&gt;dc6dba(i)=fhat5*x5a(i)-fhat6*x6a(i);&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc logistic data=monika.regdata outest=monika.orgcoefs2 covout descending noprint;&lt;BR /&gt;model y=&amp;amp;gendervars &amp;amp;newvars / link=logit;&lt;BR /&gt;weight wt / normalize;&lt;/P&gt;&lt;P&gt;data monika.covar (drop=&amp;amp;gendervars _link_ _type_ _status_ _name_ _lnlike_);&lt;BR /&gt;set monika.orgcoefs2;&lt;BR /&gt;* delete coefs and rows associated with racevars;&lt;BR /&gt;if _n_=1 or (3&amp;lt;=_n_&amp;lt;=(&amp;amp;r+2)) then delete;&lt;/P&gt;&lt;P&gt;proc means data=monika.combined noprint;&lt;BR /&gt;var yw ym pred0-pred6&lt;BR /&gt;dc1db0 dc1db1-dc1db&amp;amp;k&lt;BR /&gt;dc2db0 dc2db1-dc2db&amp;amp;k&lt;BR /&gt;dc3db0 dc3db1-dc3db&amp;amp;k&lt;BR /&gt;dc4db0 dc4db1-dc4db&amp;amp;k&lt;BR /&gt;dc5db0 dc5db1-dc5db&amp;amp;k&lt;BR /&gt;dc6db0 dc6db1-dc6db&amp;amp;k&lt;BR /&gt;ordgroup1-ordgroup6;&lt;BR /&gt;output out=means1 mean=;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data monika.cont1 (keep=dc1db0 dc1db1-dc1db&amp;amp;k)&lt;BR /&gt;monika.cont2 (keep=dc2db0 dc2db1-dc2db&amp;amp;k)&lt;BR /&gt;monika.cont3 (keep=dc3db0 dc3db1-dc3db&amp;amp;k)&lt;BR /&gt;monika.cont4 (keep=dc4db0 dc4db1-dc4db&amp;amp;k)&lt;BR /&gt;monika.cont5 (keep=dc5db0 dc5db1-dc5db&amp;amp;k)&lt;BR /&gt;monika.cont6 (keep=dc6db0 dc6db1-dc6db&amp;amp;k);&lt;BR /&gt;set monika.means1;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;use monika.covar;&lt;BR /&gt;read all var _num_ into V;&lt;BR /&gt;use monika.cont1;&lt;BR /&gt;read all var _num_ into DC1DB;&lt;BR /&gt;use monika.cont2;&lt;BR /&gt;read all var _num_ into DC2DB;&lt;BR /&gt;use monika.cont3;&lt;BR /&gt;read all var _num_ into DC3DB;&lt;BR /&gt;use monika.cont4;&lt;BR /&gt;read all var _num_ into DC4DB;&lt;BR /&gt;use monika.cont5;&lt;BR /&gt;read all var _num_ into DC5DB;&lt;BR /&gt;use monika.cont6;&lt;BR /&gt;read all var _num_ into DC6DB;&lt;/P&gt;&lt;P&gt;VAR1=DC1DB*V*t(DC1DB);&lt;BR /&gt;VAR2=DC2DB*V*t(DC2DB);&lt;BR /&gt;VAR3=DC3DB*V*t(DC3DB);&lt;BR /&gt;VAR4=DC4DB*V*t(DC4DB);&lt;BR /&gt;VAR5=DC5DB*V*t(DC5DB);&lt;BR /&gt;VAR6=DC6DB*V*t(DC6DB);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;create monika.vardata var {var1 var2 var3 var4 var5 var6};&lt;BR /&gt;append;&lt;/P&gt;&lt;P&gt;data monika.means1 (keep=yw ym pred0-pred6 var1-var6 cont1-cont6 ordgroup1-ordgroup6);&lt;BR /&gt;merge monika.means1 monika.vardata;&lt;BR /&gt;cont1=pred0-pred1;&lt;BR /&gt;cont2=pred1-pred2;&lt;BR /&gt;cont3=pred2-pred3;&lt;BR /&gt;cont4=pred3-pred4;&lt;BR /&gt;cont5=pred4-pred5;&lt;BR /&gt;cont6=pred5-pred6;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data monika.means1 (keep = yw ym contg1-contg6 vargroup1-vargroup6);&lt;BR /&gt;set monika.means1;&lt;BR /&gt;array ordgroupa{6} ordgroup1-ordgroup6;&lt;BR /&gt;array contgroupa{6} contg1-contg6;&lt;BR /&gt;array vargroupa{6} vargroup1-vargroup6;&lt;BR /&gt;array conta{6} cont1-cont6;&lt;BR /&gt;array vara{6} var1-var6;&lt;BR /&gt;do j = 1 to 6;&lt;BR /&gt;do i = 1 to 6;&lt;BR /&gt;if ordgroupa[j] = i then do;&lt;BR /&gt;contgroupa[j] = conta[i];&lt;BR /&gt;vargroupa[j] = vara[i];&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data monika.means2;&lt;BR /&gt;set monika.means2 monika.means1;&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;options nonotes;&lt;BR /&gt;%simulate;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=monika.means2;&lt;BR /&gt;title2 'Mean Values of Contribution Estimates from Simulations';&lt;BR /&gt;var yw ym contg1-contg6 vargroup1-vargroup6;&lt;BR /&gt;output out=monika.meandecomp mean=;&lt;/P&gt;&lt;P&gt;data monika.meandecomp;&lt;BR /&gt;merge monika.meandecomp monika.ywdata monika.ymdata;&lt;BR /&gt;gap=ymfull-ywfull;&lt;BR /&gt;perc1=contg1/gap;&lt;BR /&gt;perc2=contg2/gap;&lt;BR /&gt;perc3=contg3/gap;&lt;BR /&gt;perc4=contg4/gap;&lt;BR /&gt;perc5=contg5/gap;&lt;BR /&gt;perc6=contg6/gap;&lt;BR /&gt;se1=sqrt(vargroup1);&lt;BR /&gt;se2=sqrt(vargroup2);&lt;BR /&gt;se3=sqrt(vargroup3);&lt;BR /&gt;se4=sqrt(vargroup4);&lt;BR /&gt;se5=sqrt(vargroup5);&lt;BR /&gt;se6=sqrt(vargroup6);&lt;BR /&gt;label contg1=&amp;amp;labelgroup1;&lt;BR /&gt;label contg2=&amp;amp;labelgroup2;&lt;BR /&gt;label contg3=&amp;amp;labelgroup3;&lt;BR /&gt;label contg4=&amp;amp;labelgroup4;&lt;BR /&gt;label contg5=&amp;amp;labelgroup5;&lt;BR /&gt;label contg6=&amp;amp;labelgroup6;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;options label;&lt;/P&gt;&lt;P&gt;proc means data=monika.meandecomp mean;&lt;BR /&gt;title2 'Final Output for Table - Means Values for Contribution Estimates';&lt;BR /&gt;var ywfull ymfull gap&lt;BR /&gt;contg1 se1 perc1 contg2 se2 perc2 contg3 se3 perc3 contg4 se4 perc4&lt;BR /&gt;contg5 se5 perc5 contg6 se6 perc6;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 22:38:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338056#M17829</guid>
      <dc:creator>MSALKAR</dc:creator>
      <dc:date>2017-03-03T22:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: fairlie decomposition</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338060#M17830</link>
      <description>&lt;P&gt;Next time please post the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like one of the data set does not have any numerical variables. The error is probably one of these line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;use monika.covar;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into V;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC1DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC2DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC3DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont4;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC4DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC5DB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use monika.cont6;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read all var _num_ into DC6DB;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 22:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338060#M17830</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-03-03T22:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: fairlie decomposition</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338548#M17845</link>
      <description>&lt;P&gt;This is the error I can see in my log. I am still not understanding where the error is. Let me know what else you need inroder to help me fix this problem. Thank you&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;ERROR: (execution) Matrix has not been set to a value.&lt;/P&gt;&lt;P&gt;operation : * at line 17659 column 121&lt;BR /&gt;operands : DC4DB, V&lt;/P&gt;&lt;P&gt;DC4DB 0 row 0 col (numeric)&lt;/P&gt;&lt;P&gt;V 15 rows 15 cols (numeric)&lt;/P&gt;&lt;P&gt;statement : ASSIGN at line 17659 column 111&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 19:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338548#M17845</guid>
      <dc:creator>MSALKAR</dc:creator>
      <dc:date>2017-03-06T19:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: fairlie decomposition</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338550#M17846</link>
      <description>I see that there is a problem with these lines&lt;BR /&gt;&lt;BR /&gt;use monika.covar;&lt;BR /&gt;read all var _num_ into V;&lt;BR /&gt;use monika.cont1;&lt;BR /&gt;read all var _num_ into DC1DB;&lt;BR /&gt;use monika.cont2;&lt;BR /&gt;read all var _num_ into DC2DB;&lt;BR /&gt;use monika.cont3;&lt;BR /&gt;read all var _num_ into DC3DB;&lt;BR /&gt;use monika.cont4;&lt;BR /&gt;read all var _num_ into DC4DB;&lt;BR /&gt;use monika.cont5;&lt;BR /&gt;read all var _num_ into DC5DB;&lt;BR /&gt;use monika.cont6;&lt;BR /&gt;read all var _num_ into DC6DB;&lt;BR /&gt;&lt;BR /&gt;My log states that all of the above datasets do not have numeric variables.&lt;BR /&gt;Is there a way to code the above same code for categorical variables?&lt;BR /&gt;Please let me know.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Mon, 06 Mar 2017 19:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/fairlie-decomposition/m-p/338550#M17846</guid>
      <dc:creator>MSALKAR</dc:creator>
      <dc:date>2017-03-06T19:47:19Z</dc:date>
    </item>
  </channel>
</rss>

