<?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: &amp;quot;Mixed Logit&amp;quot; model, Subject, Class and levels in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411187#M21523</link>
    <description>&lt;P&gt;Hi Moji,&lt;/P&gt;
&lt;P&gt;Many people struggle to understand when to use RANDOM or REPEATED. I recommend the paper &lt;A href="http://support.sas.com/resources/papers/proceedings12/332-2012.pdf" target="_self"&gt;"Tips and Strategies for Mixed Modeling with SAS/STAT Procedures."&lt;/A&gt;&amp;nbsp;which addresses this issue and also gives other suggestions for mixed modeling. I also recommend &lt;A href="https://www.mwsug.org/proceedings/2015/AA/MWSUG-2015-AA-04.pdf" target="_self"&gt;"Advanced Techniques for Fitting Mixed Models Using SAS/STAT Software"&lt;/A&gt; by the same authors.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 14:05:00 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-11-07T14:05:00Z</dc:date>
    <item>
      <title>"Mixed Logit" model, Subject, Class and levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411001#M21521</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I had the observation of children's behavior and the physical environment of their place. Each child joint to its location by a unique id, finally for each child,&amp;nbsp;I have a unique&amp;nbsp;ID as "ID_children"&amp;nbsp; include the behavior and the characteristics&amp;nbsp;of its location as independent variables(X)with consider to&amp;nbsp;some dependent variables as Y&amp;nbsp; (Y_VISUAL_B, Y- SPATIAL, Y- TEMP).&amp;nbsp;&lt;/P&gt;&lt;P&gt;All data was coding binary&amp;nbsp;(0,1).&lt;/P&gt;&lt;P&gt;Before I did chi-square and&amp;nbsp;Pearson Spearman in SAS. Nowadays I am doing "mixed logit".&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have four&amp;nbsp; group of independent variable as:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Individual (age, gender)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Crossing situation (other pedestrians,…)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Child behavior (head and eyes movement, ..)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;Physical environment (with of crosswalk,)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*****************************************************************************
MODELES MULTINIVEAU LINÉAIRES
*****************************************************************************/
PROC MIXED DATA=work12.T12 Method=ML COVTEST noclprint noitprint;
Title1 "************************************";
Title2 "MODELES MULTINIVEAUX";
Title3 "MODELE 1: Modèle vide";
Title4 "************************************";
CLASS ID_children;/*	Variable définissant l'identifiant du niveau 2 */
	MODEL Y_VISUAL_A = /SOLUTION;
	RANDOM intercept/SUBJECT= ID_children ;
	RUN;
/*****************************************************************************
MODELES MULTINIVEAU LINÉAIRES
*****************************************************************************/
PROC MIXED noclprint  DATA=Work1.Test1 Method=ML COVTEST;
Title1 "************************************";
Title2 "MODELES MULTINIVEAUX";
Title3 "MODELE 2: Prédicteurs au niveau 1";
Title4 "************************************";
		CLASS ID_children									/*	Variable définissant l'identifiant du niveau 2 */
	MODEL Y_VISUAL_A = AGE GENDER  					/ SOLUTION ddfm=bw;
	RANDOM intercept/SUBJECT= ID_children;
RUN;
PROC MIXED noclprint  DATA=work12.T12 Method=ML COVTEST;
Title1 "************************************";
Title2 "MODELES MULTINIVEAUX";
Title3 "MODELE 3: Predicteurs au niveau 2";
Title4 "************************************";
	CLASS ID_children /*	Variable définissant l'identifiant du niveau 2 */
	MODEL Y_VISUAL_A = ACT_BEF  DESTINATION_A D CONTACT_CLOSE_AFT  FALSE_START     ;   / SOLUTION ddfm=bw;
	RANDOM intercept / SUBJECT=ID_children;
RUN;
PROC MIXED DATA=work12.T12  Method=ML COVTEST noclprint;
Title1 "************************************";
Title2 "MODELES MULTINIVEAUX";
Title3 "MODELE 4: Predicteurs aux niveau 1 et 2";
Title4 "************************************";
	CLASS ID_children;									/*	Variable définissant l'identifiant du niveau 2 */
MODEL Y_VISUAL_A = 	/* Niveau 1 */
			AGE GENDER  

			/* Niveau 2 */
		ACT_BEF  DESTINATION_A D CONTACT_CLOSE_AFT  FALSE_START / SOLUTION ddfm=bw;

	RANDOM intercept / SUBJECT=ID_children;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I&amp;nbsp;decide to use "mixed logit" to examine these independent variables in the separate&amp;nbsp;group for each Y.&lt;/P&gt;&lt;P&gt;I did not have any experience in SAS,&amp;nbsp;but I prefer to do the statical part of my project in the high capacity software like SAS.&lt;/P&gt;&lt;P&gt;This is the first draft of mixed logic that I create in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now, I have some question, I appreciate if you guide me.&lt;/P&gt;&lt;P&gt;First, I don't&amp;nbsp;have exactly,&amp;nbsp;which "class" and " subject "&amp;nbsp; is ok for my data.&lt;/P&gt;&lt;P&gt;then is it "Random " or&amp;nbsp; "Repeat"&amp;nbsp;&lt;/P&gt;&lt;P&gt;Third, I have more than 2 level of data ( For level), How can I do them in " mixed logit".&lt;/P&gt;&lt;P&gt;I tried to explain clearly, I am waiting for your kindly guide.&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Moji&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 21:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411001#M21521</guid>
      <dc:creator>Moji</dc:creator>
      <dc:date>2017-11-06T21:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: "Mixed Logit" model, Subject, Class and levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411154#M21522</link>
      <description>&lt;P&gt;If I was right, PROC MIXED is not able to run logistic model, try PROC GLIMMIX .&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 12:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411154#M21522</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-07T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: "Mixed Logit" model, Subject, Class and levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411187#M21523</link>
      <description>&lt;P&gt;Hi Moji,&lt;/P&gt;
&lt;P&gt;Many people struggle to understand when to use RANDOM or REPEATED. I recommend the paper &lt;A href="http://support.sas.com/resources/papers/proceedings12/332-2012.pdf" target="_self"&gt;"Tips and Strategies for Mixed Modeling with SAS/STAT Procedures."&lt;/A&gt;&amp;nbsp;which addresses this issue and also gives other suggestions for mixed modeling. I also recommend &lt;A href="https://www.mwsug.org/proceedings/2015/AA/MWSUG-2015-AA-04.pdf" target="_self"&gt;"Advanced Techniques for Fitting Mixed Models Using SAS/STAT Software"&lt;/A&gt; by the same authors.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 14:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411187#M21523</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-07T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: "Mixed Logit" model, Subject, Class and levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411348#M21538</link>
      <description>&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for useful articles, I read them.&lt;/P&gt;&lt;P&gt;As I found I can use the unique Id that I have in the dataset as "Class" and "subject" in&amp;nbsp; 'PROC MIXED". Because just this Column&amp;nbsp;is unique for each child.&lt;/P&gt;&lt;P&gt;Second, my project examined children randomly in street with considering to age (between 4-12 years old), so can I use "RANDOM"?&amp;nbsp;Because, I observed the behavior of children and the characteristics&amp;nbsp;of their location, and I had no repetition.&lt;/P&gt;&lt;P&gt;Third, my database includes the different categories that I can use "children Id " for each group. Could you please&amp;nbsp;guide me,&amp;nbsp;how can&amp;nbsp;I have them in a different category in SAS. As you can see in SAS model that showed previously, I found the formula in 2 level, but I have 4 level of data (individual, behavior, physical&amp;nbsp;environment and crossing situation).&amp;nbsp;I don't&amp;nbsp;know if this possible or not?&lt;BR /&gt;I really interested&amp;nbsp;to do this part of my project in SAS, however, i don't have enough information.&lt;/P&gt;&lt;P&gt;I appreciate if you guide me.&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moji&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 20:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/quot-Mixed-Logit-quot-model-Subject-Class-and-levels/m-p/411348#M21538</guid>
      <dc:creator>Moji</dc:creator>
      <dc:date>2017-11-07T20:08:10Z</dc:date>
    </item>
  </channel>
</rss>

