Αποστολή με SMS: Structural analysis of discrete data with econometric applications