Estimates gravity models via double demeaning (DDM) the left hand side and right hand side of the gravity equation Use ddm (gravity) With (In) R Software https://www.youtube.com/watch?v=rVZWO2GCWSU