This function draws the original visual predictive check plot proposed by Holford & Karlsson (2008). The visual predictive check plot is a graphical comparison of the distribution of observations and simulated data from the fitted model. In the "scatter" type of the VPC plot, dots indicate the observed data. Two dashed blue lines and one solid line represent profiles of percentiles of the simulated data. If the fitted model represents the observed data well, most observed data are between two dashed blue lines. In the "percentile" type of the VPC plot, profiles of percentiles from the observed data are compared to profiles of percentiles from the simulated data. Red lines represent profiles from the observed data, and blue lines represent profiles from the simulated data. If the fitted model represents the observed data well, two profiles in each percentile - one from the original data and the other from the simulated data - are similar. In the "CI" type of the VPC plot, sky blue and pink areas represent the confidence areas of the profile in each percentile. These confidence areas were calculated from the simulated data. In this plot, it is necessary to verify that the profiles of the original data are in confidence areas of each profile from the simulated data in each percentile. If each percentile line of the observed data is in the corresponding confidence area, this can be evidence that the fitted model represents the observed data quite well. Otherwise, the fitted model needs to be improved.
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.