In this case Helpman, Melitz and Rubinstein (2008) suggest taking a Heckman approach, which involves two steps. First, a probit is estimated to evaluate the probability that exports are positive, and second, the gravity equation is estimated on the positive trade flows including
two additional regressors: a correction for selection bias and a correction for firm heterogeneity