C++ implementations of the PO and probit links for stpm2