THEORY AND PRACTICE OF MIXED MODELING