On 02/10/2015 8:24 AM, Jomy Jose wrote:
> Is it possible to code in R to get Q-Q plot for Rayleigh distribution

If you have a quantile function for any distribution, you can make a QQ
plot using ppoints() and the quantile function.

The Rayleigh distribution isn't in base R, but Google says it is in the
VGAM, lmomco, reliaR, etc. packages.  Pick one of those, e.g. VGAM,
which calls the quantile function "qrayleigh".  Then if you have a
sample x and want to compare to Rayleigh with scale 1, you do

library(VGAM)
qqplot(qrayleigh(ppoints(length(x))), x)


Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to