For information on how to make custom stats take a look at the Custom Stats Guide
, and the Tutorial: Custom Reports and Statistics
goes into more detail with examples of how to make new versions of stats. (The latter was written for PT3, but it works the same way in PT4, just with slightly different database table names.)
The size of the 2bet faced is stored in the database as "cash_hand_player_statistics.amt_p_2bet_facing", and is the amount the player would have to call, so for example to test for a min-raise you could include the following in the expression of your new columns (and base them on the facing steal stat that you want to make a new version of):
(cash_hand_player_statistics.amt_p_2bet_facing / cash_limit.amt_bb) = 1
ie. the player faced a raise (2bet) of 1 BB more.
If you play tournaments that would be:
(tourney_hand_player_statistics.amt_p_2bet_facing / tourney_blinds.amt_bb.amt_bb) = 1
You could equally do one for larger raises by testing for "... > 10", for example.
Testing for an actual all-in explicitly is a little more complex. Do you mean when the opponent is going all-in, or when their race would put you all-in, for example?