Learn R Programming

MVT (version 0.3)

envelope: QQ-plot with simulated envelopes

Description

Constructs a normal QQ-plot using a Wilson-Hilferty transformation for the estimated Mahalanobis distances obtained from the fitting procedure.

Usage

envelope(object, reps = 50, conf = 0.95, plot.it = TRUE)

Arguments

object
an object of class 'studentFit' representing the fitted model.
reps
number of simulated point patterns to be generated when computing the envelopes. The default number is 50.
conf
the confidence level of the envelopes required. The default is to find 95% confidence envelopes.
plot.it
if TRUE it will draw the corresponding plot, if FALSE it will only return the computed values.

Value

A list with the following components :
transformed
a vector with the z-scores obtained from the Wilson-Hilferty transformation.
envelope
a matrix with two columns corresponding to the values of the lower and upper pointwise confidence envelope.

References

Atkinson, A.C. (1985). Plots, Transformations and Regression. Oxford University Press, Oxford.

Osorio, F., and Galea, M. (2015). Statistical inference in multivariate analysis using the t-distribution. Unpublished manuscript.

See Also

wilson.hilferty

Examples

Run this code
data(PFM)
fit <- studentFit(~ cuprum.D + habitat.D + planvital.D + provida.D, data = PFM,
  family = Student(eta = 0.25))
envelope(fit, reps = 500, conf = 0.95)

Run the code above in your browser using DataLab