Rice {VGAM} | R Documentation |
Density and random generation for the Rice distribution.
drice(x, vee, sigma) rrice(n, vee, sigma)
x |
vector of quantiles. |
n |
number of observations. Must be a positive integer of length 1. |
vee, sigma |
See riceff .
|
See riceff
, the VGAM family function
for estimating the two parameters,
for the formula of the probability density function and other details.
drice
gives the density,
rrice
generates random deviates.
T. W. Yee
## Not run: x = seq(0.01, 7, len=201) plot(x, drice(x, vee=0, sigma=1), type="n", las=1,, ylab="", main="Density of Rice distribution for various values of v") sigma = 1; vee = c(0,0.5,1,2,4) for(ii in 1:length(vee)) lines(x, drice(x, vee[ii], sigma), col=ii) legend(x=5, y=0.6, legend=as.character(vee), col=1:length(vee), lty=1) ## End(Not run)