<?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 Using IPF, further questions in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-IPF-further-questions/m-p/112859#M866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks a lot for the helpful document (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/techsup/technote/ts131.html"&gt;http://support.sas.com/techsup/technote/ts131.html&lt;/A&gt;&lt;SPAN&gt;) you mentioned to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am on the way to adapt the described procedure to our data and have some more questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Meaning und use of CONFIG and DIM &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The given example nr. 2 uses CONFIG = {2 3 4} und DIM = {2 3 2 4} for the variables school, sex, age and region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What do the 2, 3, 4 in the CONFIG-statement mean? Why does SAS know which variables are meant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What's about the order of the elements of CONFIG and DIM with regard to the INITAB matrix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The DIM_statement gives four dimensions whereas there are only three variables given in the CONFIG-statement. What's the reason for this?&amp;nbsp; &lt;/P&gt;&lt;P&gt;2. In case of adjusting data from one source to two new margins specifying a model with main effects and two-factor-effects (CONFIG = {1, 2}) I got&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; different results depending on the input matrix TABLE. I used the “greedy algorithm” and the “Get independent table from margins” to fill the matrix &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; TABLE. The STATUS parameter showed that only two iteration steps were needed in both cases.&amp;nbsp; What might be the reason for these different cell&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; estimates depending on the input matrix TABLE?&lt;/P&gt;&lt;P&gt;3. Is there any possibility to test the goodness of fit of the obtained model or its parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sasstat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 09:13:14 GMT</pubDate>
    <dc:creator>sasstat</dc:creator>
    <dc:date>2012-10-31T09:13:14Z</dc:date>
    <item>
      <title>Using IPF, further questions</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-IPF-further-questions/m-p/112859#M866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks a lot for the helpful document (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/techsup/technote/ts131.html"&gt;http://support.sas.com/techsup/technote/ts131.html&lt;/A&gt;&lt;SPAN&gt;) you mentioned to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am on the way to adapt the described procedure to our data and have some more questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Meaning und use of CONFIG and DIM &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The given example nr. 2 uses CONFIG = {2 3 4} und DIM = {2 3 2 4} for the variables school, sex, age and region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What do the 2, 3, 4 in the CONFIG-statement mean? Why does SAS know which variables are meant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What's about the order of the elements of CONFIG and DIM with regard to the INITAB matrix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The DIM_statement gives four dimensions whereas there are only three variables given in the CONFIG-statement. What's the reason for this?&amp;nbsp; &lt;/P&gt;&lt;P&gt;2. In case of adjusting data from one source to two new margins specifying a model with main effects and two-factor-effects (CONFIG = {1, 2}) I got&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; different results depending on the input matrix TABLE. I used the “greedy algorithm” and the “Get independent table from margins” to fill the matrix &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; TABLE. The STATUS parameter showed that only two iteration steps were needed in both cases.&amp;nbsp; What might be the reason for these different cell&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; estimates depending on the input matrix TABLE?&lt;/P&gt;&lt;P&gt;3. Is there any possibility to test the goodness of fit of the obtained model or its parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sasstat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 09:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-IPF-further-questions/m-p/112859#M866</guid>
      <dc:creator>sasstat</dc:creator>
      <dc:date>2012-10-31T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using IPF, further questions</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-IPF-further-questions/m-p/112860#M867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not an expert in this area, but here are some answers/hints. The doc is at &lt;A href="http://support.sas.com/documentation/cdl/en/imlug/65547/HTML/default/viewer.htm#imlug_langref_sect191.htm" title="http://support.sas.com/documentation/cdl/en/imlug/65547/HTML/default/viewer.htm#imlug_langref_sect191.htm"&gt;http://support.sas.com/documentation/cdl/en/imlug/65547/HTML/default/viewer.htm#imlug_langref_sect191.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1) For CONFIG, see the section "Additional Details", subsection "The config Parameter."&amp;nbsp; For the relationship between CONFIG, DIM, and INITAB, see the subsection "&lt;SPAN class="term"&gt;The Shape of the &lt;SPAN class="phrase argument"&gt;table&lt;/SPAN&gt; Parameter."&amp;nbsp; The DIM vector has four elements because there are 4 variables in the table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="term"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="term"&gt;There are only three elements in the CONFIG statement because your model contains three effects. As the doc says, "The columns of this matrix specify which interaction effects should be included in the model," so the model contains the main effects age (var2), sex (var3), and school (var4).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="term"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="term"&gt;2) I don't know the reason. I'd suggest reading Maura Stokes' book on categorical data analysis to understand the "why."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="term"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="term"&gt;3) The IPF call doesn't produce GOF statistics. You can construct a chi-square test of predicted vs observed values in IML. Or, there are other procedures such as CATMOD and GENMOD that handle log-linear models of categorical variables. See &lt;A href="http://support.sas.com/documentation/cdl/en/statug/65328/HTML/default/viewer.htm#statug_catmod_examples04.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/65328/HTML/default/viewer.htm#statug_catmod_examples04.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_genmod_sect059.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_genmod_sect059.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 11:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-IPF-further-questions/m-p/112860#M867</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-10-31T11:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using IPF, further questions</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-IPF-further-questions/m-p/112861#M868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;I am going to check these hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sasstat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 11:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-IPF-further-questions/m-p/112861#M868</guid>
      <dc:creator>sasstat</dc:creator>
      <dc:date>2012-10-31T11:53:42Z</dc:date>
    </item>
  </channel>
</rss>

