Selection effects and nonproportional hazards in survival models and models for repeated events - Keiding, Niels (Research report, 1998)