Convert normal to beta
Arguments
- x
the normally distributed vector
- shape1, shape2
non-negative parameters of the distribution to return
- mu
the mean of x (calculated from x if not given)
- sd
the SD of x (calculated from x if not given)
- ...
further arguments to pass to qbeta (e.g., ncp)
Examples
x <- rnorm(10000)
y <- norm2beta(x, 1, 3)
g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y))
ggExtra::ggMarginal(g, type = "histogram")