<?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: SAS QLIM with random effects on two subject classes in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893670#M44275</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;at PROC &lt;U&gt;HP&lt;/U&gt;QLIM (SAS 9.4 multi-threaded) and&lt;/LI&gt;
&lt;LI&gt;at PROC &lt;U&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/U&gt;QLIM (SAS Viya using CAS engine)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;, but these will not help you out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following support note will not help you out either , but it's a nice read :&lt;BR /&gt;&lt;BR /&gt;Usage Note&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;67037:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;Estimating limited and discrete dependent variable models with random parameters or random effects using PROC QLIM&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/67/037.html" target="_blank"&gt;https://support.sas.com/kb/67/037.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 23:14:53 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-09-11T23:14:53Z</dc:date>
    <item>
      <title>SAS QLIM with random effects on two subject classes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893654#M44272</link>
      <description>&lt;P&gt;I'm running a QLIM analysis to analyze a panel data (shopper x store x time). I need to specify the random effects from two sources: shoppers and stores. I recognize that QLIM does not allow more than one random statement.&lt;/P&gt;&lt;P&gt;I need "shopper_id" and "store_id" to both act as subjects for the random effects. Is there any way to trick QLIM to run the following analysis?&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;proc qlim data=indata heckit;
class shopper_id store_id;
model choice = price promotion iv&amp;nbsp;/ DISCRETE;
model y = price promotion&amp;nbsp;/ SELECT(choice=1) ;
random Int / type=un subject=shopper_id store_id;
run;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 21:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893654#M44272</guid>
      <dc:creator>sasgenie</dc:creator>
      <dc:date>2023-09-11T21:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS QLIM with random effects on two subject classes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893663#M44273</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are shoppers hierarchically nested within stores (not one shopper pops up in more than one store)?&lt;BR /&gt;In that case, you could try :&lt;BR /&gt;subject = &lt;SPAN&gt;shopper_id&lt;/SPAN&gt;(&lt;SPAN&gt;store_id&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not , can't you make a new variable to identify the&amp;nbsp;&lt;SPAN&gt;cross-sectional units (an id for every unique shopper*store combination)?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Like here :&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   separator='%%$%%';
   shopper_id='The Olympic  '; 
   store_id  ='   Arts Festival ';
   shopXstore_ID=catx(separator, shopper_id, store_id);
   put &lt;SPAN&gt;shopXstore_ID &lt;/SPAN&gt;$char.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Then do :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;subject = shopXstore_ID;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR,&lt;BR /&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 22:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893663#M44273</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-09-11T22:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS QLIM with random effects on two subject classes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893665#M44274</link>
      <description>&lt;P&gt;Thanks for the ideas. There is no nesting relationship between the two. Creating a cross variable would results in too many combinations (instead of m + n levels, this will create m*n levels), and my data does not have enough degrees of freedom to estimate it (imagine each shopper shops at each store at most once).&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 22:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893665#M44274</guid>
      <dc:creator>sasgenie</dc:creator>
      <dc:date>2023-09-11T22:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS QLIM with random effects on two subject classes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893670#M44275</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;at PROC &lt;U&gt;HP&lt;/U&gt;QLIM (SAS 9.4 multi-threaded) and&lt;/LI&gt;
&lt;LI&gt;at PROC &lt;U&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/U&gt;QLIM (SAS Viya using CAS engine)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;, but these will not help you out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following support note will not help you out either , but it's a nice read :&lt;BR /&gt;&lt;BR /&gt;Usage Note&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;67037:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;Estimating limited and discrete dependent variable models with random parameters or random effects using PROC QLIM&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/67/037.html" target="_blank"&gt;https://support.sas.com/kb/67/037.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 23:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-with-random-effects-on-two-subject-classes/m-p/893670#M44275</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-09-11T23:14:53Z</dc:date>
    </item>
  </channel>
</rss>

