Code amended to ensure entries in the offset vector corresponding to missing values in the outcome are removed.