beta2norm: Convert beta to normal

Description Usage Arguments Value Examples

View source: R/distribution_convertors.R

Description

Convert beta to normal

Usage

1
beta2norm(x, mu = 0, sd = 1, shape1 = NULL, shape2 = NULL, ...)

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)

Value

a vector with a normal distribution

Examples

1
2
3
4
x <- rbeta(10000, 2, 3)
y <- beta2norm(x)
g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y))
ggExtra::ggMarginal(g, type = "histogram")

faux documentation built on Sept. 14, 2021, 1:08 a.m.