[R] Rayleigh Distribution

Duncan Murdoch murdoch.duncan at gmail.com
Fri Oct 2 15:54:52 CEST 2015


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



More information about the R-help mailing list