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