Functions to create a Mean-Variance plot for checking the distribution assumptions of the mean and the variance. Distributions available are Gaussian, Poisson, QuasiPoisson, Gamma and Tweedie.
Source:R/plotMeanVar.R
plotMeanVar.Rd
Functions to create a Mean-Variance plot for checking the distribution assumptions of the mean and the variance. Distributions available are Gaussian, Poisson, QuasiPoisson, Gamma and Tweedie.
Arguments
- model
Fitted model object (glm or gam)
- save
(
default=FALSE
). Logical stating whether plot should be saved into working directory. Seelabel
to change directory.- label
Character string indicating an label to be added to the plot when using
save = TRUE
. Can also include a pathway to a directory of choice.Logical stating whether or not to print the plot. If FALSE then the plot object is returned.
- cut.prob.by
Numerical input to state the increment for the sequence of cut probabilities.