Plot method for objects of class "mahalDistCens". It also gives a quantile for outlier detection, based on the Mahalanobis distance theoretical distribution.
## S3 method for class 'mahalDistCens'plot(x, fitobject, level =0.99, nlabels =3,...)
Arguments
x: An object inheriting from class mahalDistCens, representing the Mahalanobis distance from a fitted scale mixture of normal censored linear mixed model.
fitobject: Optional. An object inheriting from class SMNclmm, representing the fitted scale mixture of normal linear mixed model that was used for calculating the Mahalanobis distance.
level: An optional numeric value in (0,1) indicating the level of the quantile. Default is 0.99.
nlabels: Number of observations that should be labeled. Default is 3.
...: Additional arguments.
Returns
A ggplot object, plotting the index versus the Mahalanobis distance, if all subject have the same number of observations; or plotting the number of observations per subject versus the Mahalanobis, otherwise.
Author(s)
Fernanda L. Schumacher, Larissa A. Matos, Victor H. Lachos and Katherine L. Valeriano