Beta2Dist {brr} R Documentation

## Beta distribution of the second kind

### Description

Density, distribution function, quantile function and random generation for the Beta distribution of the second kind with shape parameters `c` and `d` and scale parameter `scale`.

### Usage

```dbeta2(x, c, d, scale, log = FALSE, ...)

pbeta2(q, c, d, scale, ...)

qbeta2(p, c, d, scale, ...)

rbeta2(n, c, d, scale)

summary_beta2(c, d, scale, output = "list", ...)
```

### Arguments

 `x,q` vector of quantiles `c,d` non-negative shape parameters `scale` non-negative scale parameter `log` logical; if true, returns the logarithm of the result `...` other arguments passed to `FDist` `p` vector of probabilities `n` number of observations to be simulated `output` type of the `summary_beta2` output: `"list"` to return a list, `"pandoc"` to print a table

### Details

The Beta distribution of the second kind with shape parameters c>0 and d>0 and scale parameter k>0 is the distribution of k*(U/(1-U)) where U is a random variable following the Beta distribution with shape parameters c and d.

### Value

`dbeta2` gives the density, `pbeta2` the distribution function, `qbeta2` the quantile function, and `rbeta2` generates random observations, and `summary_beta2` returns a summary of the distribution.

### Note

`Beta2Dist` is a generic name for the functions documented.

### Examples

```curve(dbeta2(x, 3, 10, scale=2), from=0, to=3)
u <- rbeta(1e5, 3, 10)
lines(density(2*u/(1-u)), col="blue", lty="dashed")
summary_beta2(3,10,2)
```

[Package brr version 1.0.0 Index]