Learn R Programming

Compositional (version 5.5)

Random values generation from some univariate distributions defined on the (0,1) interval: 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 \(R\).

s

The standard deviation of the univariate normal in \(R\).

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.

Value

A vector with the simulated data.

Details

The function genrates random values from the Be(a, 1), the unit Weibull or the univariate logistic normal distribution.

See Also

beta.est, colbeta.est, rdiri

Examples

Run this code
# NOT RUN {
x <- rbeta1(100, 3)
# }

Run the code above in your browser using DataLab