
Calculate the sample mean of a Beta Prime distribution
d_sample_mean_bp.RdCalculate the sample mean of a Beta Prime distribution
Arguments
- x
A numeric vector of observations
- 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
Examples
x <- c(0.2, 0.3, 0.4)
d_sample_mean_bp(x, n = 3, mu = 1, phi = 2)
#> [1] 0.02826534 0.22347337 0.57718817