Learn R Programming

FlexReg (version 1.1)

rVIB: Random generation from the variance-inflated beta distribution

Description

The function randomly generates values from the variance-inflated beta distribution.

Usage

rVIB(n, mu, phi, p, k)

Value

A vector of length n.

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.

p

the mixing weight. It must lie in (0, 1).

k

the extent of the variance inflation. It must lie in (0, 1).

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

Run this code
rVIB(100,0.5,30,0.3,0.6)

Run the code above in your browser using DataLab