Learn R Programming

pearson7 (version 1.0-3)

rpearson7: Generate random deviates from a Pearson VII distribution with shape parameter 3/2.

Description

Generate random deviates from a Pearson VII distribution with shape parameter 3/2.

Usage

rpearson7(n, mu = 0, sigma = 1)

Arguments

n

number of observations.

mu

vector of means.

sigma

vector of scales.

Value

random deviates.

Details

If mu is not specified, it assumes the default value of 0. If sigma is not specified, it assumes the default value of 1.

References

Hughes, J., Shastry, S., Hancock, W. O., and Fricks, J. (2013) Estimating velocity for processive motor proteins with random detachment. Journal of Agricultural, Biological, and Environmental Statistics, in press.

Devroye, L. (1986) Non-Uniform Random Variate Generation. New York: Springer-Verlag.

See Also

dpearson7, ppearson7, qpearson7

Examples

Run this code
# NOT RUN {
y = rpearson7(1000)
hist(y, prob = TRUE, breaks = 100, col = "gray")
curve(dpearson7(x), lwd = 2, col = "blue", add = TRUE)

# }

Run the code above in your browser using DataLab