# rVIB: Random generation from the variance-inflated beta... In FlexReg: Regression Models for Bounded Continuous and Discrete Responses

 rVIB R Documentation

## Random generation from the variance-inflated beta distribution

### Description

The function generates random values from the variance-inflated beta distribution, or from the augmented variance-inflated beta distribution.

### Usage

``````rVIB(n, mu, phi, p, k, q0 = NULL, q1 = NULL)
``````

### Arguments

 `n` the number of values to generate. 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 real positive value. `p` the mixing weight. It must lie in (0, 1). `k` the extent of the variance inflation. It must lie in (0, 1). `q0` the probability of augmentation in zero. It must lie in (0, 1). In case of no augmentation, it is `NULL` (default). `q1` the probability of augmentation in one. It must lie in (0, 1). In case of no augmentation, it is `NULL` (default).

### Value

A vector of length `n`.

### References

Di Brisco, A. M., Migliorati, S., Ongaro, A. (2020). Robustness against outliers: A new variance inflated regression model for proportions. Statistical Modelling, 20(3), 274–309. doi:10.1177/1471082X18821213

### Examples

``````rVIB(n = 100, mu = .5, phi = 30, p = .3, k = .6)
rVIB(n = 100, mu = .5, phi = 30, p = .3, k = .6, q0 = .2, q1 = .1)

``````

FlexReg documentation built on Sept. 29, 2023, 9:06 a.m.