iiw function

Given a proportional hazards model for visit intensities, compute inverse-intensity weights.