Random values generation from some univariate distributions defined on the (0,1) interval {Compositional} | R Documentation |
Random values generation from some univariate distributions defined on the (0,1)
interval
Description
Random values generation from some univariate distributions defined on the (0,1)
interval.
Usage
rbeta1(n, a)
runitweibull(n, a, b)
rlogitnorm(n, m, s, fast = FALSE)
Arguments
n |
The sample size, a numerical value. |
a |
The shape parameter of the beta distribution. In the case of the unit Weibull, this is the shape parameter. |
b |
This is the scale parameter for the unit Weibull distribution. |
m |
The mean of the univariate normal in |
s |
The standard deviation of the univariate normal in |
fast |
If you want a faster generation set this equal to TRUE. This will use the Rnorm() function from the Rfast package. However, the speed is only observable if you want to simulate at least 500 (this number may vary among computers) observations. The larger the sample size the higher the speed-up. |
Details
The function genrates random values from the Be(a, 1), the unit Weibull or the univariate logistic normal distribution.
Value
A vector with the simulated data.
Author(s)
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
See Also
Examples
x <- rbeta1(100, 3)