This function calculates the numerical predictive checks for each prediction level. For a given level of prediction, the predicted interval is calculated using the simulated data, and the number of observed data below the predicted interval is counted. The expected number of points below the predicted interval is also calculated and compared to the observed number.
Holford N, & Karlsson M. (2008). "A tutorial on visual predictive checks, abstr 1434." Annual Meeting of the Populations Approach Group in Europe. www.page-meeting.org. 2008.
Harling, Uekcert, K. 2018. VPC and NPC User Guide. ICON plc.