Mixed models and point processes