added calculateNoObservationsGL to deal with GLs when there is no data for an invidual