TITLE: Scoring Model
DATA: FILE = 
 "C:/Users/colev/Dropbox/aMNLFA_12212017/UMNfix_082021/aMNLFA/inst/extdata/full.dat";
VARIABLE: 
NAMES = ID BIN_1 BIN_2 BIN_3 BIN_4 BIN_5 BIN_6 BIN_7 BIN_8 BIN_9 BIN_10 BIN_11
     BIN_12 AGE GENDER STUDY; 
MISSING=.;
!
!
!
USEVARIABLES= BIN_1 BIN_2 BIN_3 BIN_4 BIN_5 BIN_6 BIN_7 BIN_8 BIN_9 BIN_10 BIN_11 BIN_12 
 AGE STUDY GENDER;
AUXILIARY=ID;
!
CATEGORICAL= BIN_1 BIN_2 BIN_3 BIN_4 BIN_5 BIN_6 BIN_7 BIN_8 BIN_9 BIN_10 BIN_11 BIN_12 ;
!
CONSTRAINT= STUDY ;
ANALYSIS: ESTIMATOR=ML; ALGORITHM=INTEGRATION; INTEGRATION=MONTECARLO; PROCESSORS=4;
MODEL: [ETA@0];ETA*(veta);
ETA BY BIN_1 @0.832;
ETA BY BIN_2 @1.412;
ETA BY BIN_3 @1.172;
ETA BY BIN_4 @1.938;
ETA BY BIN_5 @1.914;
ETA BY BIN_6 @1.99;
ETA BY BIN_7 @0.733;
ETA BY BIN_8*(l_8);
ETA BY BIN_9 @1.248;
ETA BY BIN_10 @1.483;
ETA BY BIN_11 @1.991;
ETA BY BIN_12 @2.189;
ETA ON AGE@0.502;
ETA ON STUDY@0.623;
BIN_2 ON GENDER@-1.04;
BIN_2 ON STUDY@0.891;
BIN_3 ON GENDER@1.012;
BIN_3 ON STUDY@1.502;
BIN_5 ON GENDER@-1.286;
BIN_5 ON STUDY@1.482;
BIN_8 ON STUDY@0.09;
[BIN_1$1@0.541];
[BIN_2$1@0.973];
[BIN_3$1@1.208];
[BIN_4$1@1.592];
[BIN_5$1@1.947];
[BIN_6$1@2.35];
[BIN_7$1@0.306];
[BIN_8$1@0.814];
[BIN_9$1@0.999];
[BIN_10$1@1.282];
[BIN_11$1@1.809];
[BIN_12$1@2.271];
MODEL CONSTRAINT:
  veta=1*exp(
  0);
  ! !;
  ! !;
  ! !;
  ! !;
  ! !;
  ! !;
  ! !;
  l_8=1.256 -0.558*STUDY;
  ! !;
  ! !;
  ! !;
  ! !;



OUTPUT: tech1;
SAVEDATA: SAVE=FSCORES; FILE=scores.dat; 
FORMAT = FREE;
