rbeta1: Random values generation from some univariate distributions...

View source: R/rbeta1.R

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

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

beta.est, colbeta.est, rdiri

Examples

x <- rbeta1(100, 3)

Compositional documentation built on Oct. 23, 2023, 5:09 p.m.