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1 1 2 1 2 2 1 0 1 0 0 1 1 2 1 0 0 1 0 2 1 1 0 1 1 1 2 0 2 2 0 0 1 0 1 1 0 2 1 1 1 1 2 0 0 0 1 1 2 0 2 9 1 2 1 2 1 2 2 1 0 0 0 0 2 2 2 1 0 1 2 1 2 1 2 2 2 0 1 2 1 2 1 1 1 2 2 2 0 9 1 1 0 1 9 0 9 9 0 1 2 0 0 0 2 2 2 2 1 1 0 0 0 1 1 0 1 1 0 1 0 1 1 1 9 9 0 9 2 0 2 0 0 1 1 0 0 1 0 1 1 1 1 1 1 1 1 2 0 2 0 0 0 2 2 1 1 0 1 1 0 1 0 2 1 0 1 1 1 1 0 0 0 1 0 1 2 1 9 0 0 0 9 0 1 1 1 1 0 0 2 1 1 0 0 1 1 1 0 9 0 0 1 9 9 9 9 1 0 1 1 0 1 0 0 1 0 2 0 1 0 0 2 2 2 0 2 2 1 0 0 2 2 1 1 2 0 2 1 0 2 1 0 1 1 1 1 1 0 2 2 2 2 1 1 1 2 1 2 1 0 1 1 1 2 2 1 0 0 2 2 0 1 0 1 1 0 2 2 0 0 0 1 2 9 0 2 1 0 1 1 1 1 1 0 0 1 1 1 0 1 1 2 0 0 0 1 1 2 1 1 2 0 2 1 1 1 0 9 0 0 1 0 2 2 0 0 0 2 1 1 1 1 1 2 1 2 1 2 1 9 2 1 1 1 1 0 0 2 2 0 0 0 0 1 1 2 1 1 1 2 2 1 1 2 2 1 2 1 2 1 1 1 1 1 1 0 1 1 2 1 1 1 2 1 0 2 1 1 0 1 2 1 0 1 0 0 2 1 1 0 2 1 0 9 9 0 0  1 %D2MIT25    D2Mit25    D2Mit25    
];
mrkname=[      'D2MIT362'
      'D2MIT72 '
      'D2Mit205'
      'D2Mit38 '
      'D2Mit93 '
      'D2MIT389'
      'D2Mit17 '
      'D2MIT260'
      'D2Mit25 '];
res=[];   
for i=1:9
   N1=length(find(x(i,7:540)==2)); N2=length(find(x(i,7:540)==1)); N3=length(find(x(i,7:540)==0));
   NN=[N1 N2 N3]; N=sum(NN);
   LR=2*(sum(NN.*log(NN/N))-sum(NN.*log([1/4 1/2 1/4])));
   pLR=chi2pdf(LR,2);
   EN=N*[1/4 1/2 1/4];
   chi=sum((NN-EN).^2./EN);
   pchi=chi2pdf(chi,2);
   res=[res sprintf([mrkname(i,:)  ' ' num2str(N1) ' ' num2str(N2) ' ' num2str(N3) ' ']) sprintf('%8.3f %8.3f %8.3f %8.3f',[chi pchi LR pLR]')  sprintf('\n')];
end

