resid_symmetry: Symmetry plots

resid_symmetryR Documentation

Symmetry plots

Description

The functions resid_symmetry() and y_symmetry() plot symmtry plots for residuals and single variable, respectively.

Usage

resid_symmetry(model, title)

y_symmetry(y, title)

Arguments

model

A model which allows the function resid()

y

a single variable

title

A title for the plot if needed

Details

The function orders the data (or residuals) and takes the median minus the lower half and plot it against the upper half minus the median.

Value

The symmetry plot is produced.

Author(s)

Mikis Stasinopoulos, Bob Rigby and Fernanda De Bastiani

References

Rigby, R. A., Stasinopoulos, D. M., Heller, G. Z., and De Bastiani, F. (2019) Distributions for modeling location, scale, and shape: Using GAMLSS in R, Chapman and Hall/CRC. An older version can be found in https://www.gamlss.com/.

Stasinopoulos D. M. Rigby R.A. (2007) Generalized additive models for location scale and shape (GAMLSS) in R. Journal of Statistical Software, Vol. 23, Issue 7, Dec 2007, https://www.jstatsoft.org/v23/i07/.

Stasinopoulos D. M., Rigby R.A., Heller G., Voudouris V., and De Bastiani F., (2017) Flexible Regression and Smoothing: Using GAMLSS in R, Chapman and Hall/CRC.

Stasinopoulos, M.D., Kneib, T., Klein, N., Mayr, A. and Heller, G.Z., (2024). Generalized Additive Models for Location, Scale and Shape: A Distributional Regression Approach, with Applications (Vol. 56). Cambridge University Press.

(see also https://www.gamlss.com/).

See Also

resid_index

Examples

y <- rBCT(1000, mu=3, sigma=.1, nu=-1, tau=5)
y_hist(y)
gg <- y_symmetry(y)

gamlss.ggplots documentation built on May 29, 2024, 1:34 a.m.