getP function

Get detection probability matrix from a fitted model