Skip to contents

Generate random samples from a Beta Prime distribution

Usage

r_bp(lots, n, mu, phi, ...)

Arguments

lots

The number of samples to generate

n

The number of observations in each sample

mu

The mean parameter of the Beta Prime distribution

phi

The shape parameter of the Beta Prime distribution

...

Additional arguments to be passed to extraDistr::rbetapr

Value

A matrix of random samples from the Beta Prime distribution

Examples

r_bp(lots = 10, n = 5, mu = 1, phi = 2)
#>                 n_1       n_2        n_3       n_4       n_5
#> sample_1  0.2302073 1.2341151 2.07422822 0.9240232 1.1281536
#> sample_2  0.5820652 0.2604040 0.55373900 0.1207785 1.1279106
#> sample_3  3.9715737 1.2102904 0.60629696 0.6151840 1.1569739
#> sample_4  0.5590145 0.6262671 0.34946576 0.1672226 0.6406254
#> sample_5  4.1138609 0.6744082 0.16932036 0.7975935 0.5907854
#> sample_6  0.5325512 0.7263505 0.46881343 2.9436681 0.5992428
#> sample_7  0.2632779 0.4839644 0.07192746 0.4366951 1.5038662
#> sample_8  0.6458324 0.5095553 0.85727526 0.1930142 2.8862364
#> sample_9  0.4978923 0.6052799 0.80332268 1.2107796 0.4418276
#> sample_10 0.7432300 0.8677468 0.23772638 0.4156168 0.4693208