
Calculate Probability Integral Transform (PIT) residuals
Source:R/residuals.R
residuals_pit_lnorm.RdThis function calculates PIT residuals for given observed values using a specified cumulative distribution function (CDF). A good set of Probability Integral Transform (PIT) residuals should appear as a random scatter of points roughly centered around 0.5 on a plot, indicating a uniform distribution, with no clear patterns or clustering, essentially looking like "white noise" across the range of predicted values; this signifies that the model fits the data well and the predicted probabilities are reliable.