Dear statlisters,
I have a dataset comprising a list of pairwise comparisons of 98 occupations.
Currently they are given as three variables:
comparator1 (the name of the first comparator - e.g. Company CEO)
comparator2 (the name of the second comparator - e.g. Elected official)
prob1 (a probability associated with comparator1)
Each comparison is listed twice, and has a different value for prob1.
For example:
In row 1, comparator1 is Company CEO, comparator2 is Elected official, and prob1 is 0.98
In row 99, comparator1 is Elected official, comparator2 is Company CEO, and prob1 is 0.08
I would like to change the data such that each contrast is only listed once, with a variable indicating the probability for each comparator.
So:
Row 1 would now, comparator1 is company CEO, comparator2 is elected official, prob1 is 0.98 and prob2 is 0.08.
Is there a straightforward way to do this?
I have a dataset comprising a list of pairwise comparisons of 98 occupations.
Currently they are given as three variables:
comparator1 (the name of the first comparator - e.g. Company CEO)
comparator2 (the name of the second comparator - e.g. Elected official)
prob1 (a probability associated with comparator1)
Each comparison is listed twice, and has a different value for prob1.
For example:
In row 1, comparator1 is Company CEO, comparator2 is Elected official, and prob1 is 0.98
In row 99, comparator1 is Elected official, comparator2 is Company CEO, and prob1 is 0.08
I would like to change the data such that each contrast is only listed once, with a variable indicating the probability for each comparator.
So:
Row 1 would now, comparator1 is company CEO, comparator2 is elected official, prob1 is 0.98 and prob2 is 0.08.
Is there a straightforward way to do this?
Comment