rBeta_mu: Random generator from the beta distribution

Description Usage Arguments Value References Examples

View source: R/rgen.R

Description

The function randomly generates values from the beta distribution with a mean-precision parameterization.

Usage

1
rBeta_mu(n, mu, phi)

Arguments

n

the number of observations. If length(n) > 1, the length is taken to be the number required.

mu

the mean parameter. It must lie in (0, 1).

phi

the precision parameter. It must be a positive real value.

Value

A vector of length n.

References

Ferrari, S.L.P., and Cribari-Neto, F. (2004). Beta Regression for Modeling Rates and Proportions. Journal of Applied Statistics, 31(7), 799–815. doi:10.1080/0266476042000214501

Examples

1
rBeta_mu(100, mu = 0.5, phi = 30)

FlexReg documentation built on Jan. 17, 2022, 5:06 p.m.