Quantile Quantile plot of data against gaussian distribution mixture model with optional best-fit-line
QQplotGMM(Data,Means,SDs,Weights,IsLogDistribution,Method,Line,
PlotSymbol,col,xug,xog,LineWidth,PointWidth,PositiveData,Type,NoQuantiles,
ylabel,main,lwd,pch,xlabel,...)
List with
The x coordinates of the points that were plotted
The original data vector, i.e., the corresponding y coordinates
vector (1:N) of data points
vector[1:L] of Means of Gaussians (of GMM),L == Number of Gaussians
vector of standard deviations, estimated Gaussian Kernels, has to be the same length as Means
vector of relative number of points in Gaussians (prior probabilities), has to be the same length as Means
Optional, ==1 if distribution(i) is a LogNormal, default Zeros of Length L
Optional, ==1 default. ==2 for robust calculation
Optional, Default: TRUE=Regression Line is drawn
Character: color of regression line (only for Method = 2)
Optional, lower limit of the interval [xug, xog], in which a line will be interpolated
Optional, upper limit of the interval [xug, xog], in which a line will be interpolated
Optional, plot symbol. Default is 20.
Optional, width of regression line, if Line==TRUE
Optional, width of points
Optional, Boolean: If true only positive values of GMM sampling are used. Default FALSE
Optional,Integer: number of method used for computing the quantiles, see quantile
Optional, Integer: Number of quantiles to compute (only for Method = 2)
Optional, see plot
Optional, see plot
Optional, Integer: graphic parameter - line width option (only for Method = 2)
Integer: graphic parameter for points (only for Method = 2)
Optional, see plot
Note: xlab cannot be changed, other parameters see qqplot
Michael Thrun
Only verified for a Gaussian Mixture Model, usage of IsLogDistribution for LogNormal Modes is experimental!
Michael, J. R. (1983). The stabilized probability plot. Biometrika, 70(1), 11-17.
data=c(rnorm(1000),rnorm(2000)+2,rnorm(1000)*2-1)
QQplotGMM(data,c(-1,0,2),c(2,1,1),c(0.25,0.25,0.5))
Run the code above in your browser using DataLab