% ODDSDP file oddsdp.m Conditional probs for calculating posterior odds % Version of 12/4/93 % Sets up conditional probabilities % for odds calculations a = input('Enter matrix A of conditional probabilities for Group 1 '); b = input('Enter matrix B of conditional probabilities for Group 2 '); p1 = input('Probability p1 an individual is from Group 1 '); n = length(a(:,1)); m = length(a(1,:)); p2 = 1 - p1; disp(' ') % Blank line in presentation disp(['Number of questions = ',num2str(n),]) % Size of profile disp(['Answers per question = ',num2str(m),]) % Usually 3: yes, no, uncertain disp(' Enter code for answers and call for procedure "odds" ') disp(' ')