is it possible to use binary choice models to predict pr(y|x) after collapsing the data by group?
​​​​​​
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input float(group individual y x)
1  1 1 8
1  2 1 9
1  3 0 7
1  4 1 7
1  5 1 8
1  6 1 5
1  7 0 4
1  8 0 5
1  9 1 8
1 10 1 9
2 11 0 7
2 12 0 5
2 13 1 8
2 14 0 3
2 15 0 4
2 16 0 5
2 17 1 4
2 18 1 9
2 19 0 4
2 20 0 5
end