Dear all, 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, I have a unique ID as "ID_children" include the behavior and the characteristics of its location as independent variables(X)with consider to some dependent variables as Y (Y_VISUAL_B, Y- SPATIAL, Y- TEMP). All data was coding binary (0,1). Before I did chi-square and Pearson Spearman in SAS. Nowadays I am doing "mixed logit". I have four group of independent variable as: Individual (age, gender) Crossing situation (other pedestrians,…) Child behavior (head and eyes movement, ..) Physical environment (with of crosswalk,) /*****************************************************************************
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; I decide to use "mixed logit" to examine these independent variables in the separate group for each Y. I did not have any experience in SAS, but I prefer to do the statical part of my project in the high capacity software like SAS. This is the first draft of mixed logic that I create in SAS. Now, I have some question, I appreciate if you guide me. First, I don't have exactly, which "class" and " subject " is ok for my data. then is it "Random " or "Repeat" Third, I have more than 2 level of data ( For level), How can I do them in " mixed logit". I tried to explain clearly, I am waiting for your kindly guide. Thanks , Moji
... View more