Convert beta to normal
Arguments
- x
the gamma distributed vector
- mu
the mean of the normal distribution to convert to
- sd
the SD of the normal distribution to convert to
- shape1, shape2
non-negative parameters of the beta distribution
- ...
further arguments to pass to pbeta (e.g., ncp)
Examples
x <- rbeta(10000, 2, 3)
y <- beta2norm(x)
#> shape1 was set to 1.97752298365205
#> shape2 was set to 3.00289671466597
g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y))
ggExtra::ggMarginal(g, type = "histogram")