Plot diagnostics dashboard for fitted gamlss.longitudinal objects
Source: R/common_functions.R
plot.gamlss.longitudinal.RdDisplays four ggplot-based diagnostic panels by default:
PIT histogram
QQ residual plot
Worm plot
Rootogram
Fitted-data and newdata quantile forecast panels can be requested
explicitly with include_fitted_quantiles and include_newdata_quantiles.
Arguments
- x
A fitted
gamlss.longitudinalobject.- y
Unused; included for S3 generic compatibility.
- data
Optional data frame used as fallback for
newdataplotting.- newdata
Optional data frame for the newdata forecast panel.
- newdata_n
Number of rows to use from
datawhennewdatais NULL.- quantiles
Quantiles for forecast panels.
- include_fitted_quantiles
Logical; if TRUE, include fitted-data forecast quantiles in the dashboard.
- include_newdata_quantiles
Logical; if TRUE, include newdata forecast quantiles in the dashboard. Uses
newdata, or the firstnewdata_nrows ofdataifnewdatais NULL.- randomize
Logical; randomized PIT/residual diagnostics.
- time_stratified
Logical; if TRUE, show time-stratified diagnostic plots.
- ...
Additional arguments (currently unused).