Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

make01

Centering and Standardization of Univariate Distributions


Description

The function make01 produces a new centered and standardized univariate distribution.

Usage

make01(x)

Arguments

x

an object of class "UnivariateDistribution"

Details

Thanks to the functionals provided in this package, the code is a one-liner: (x-E(x))/sd(x).

Value

Object of class "UnivariateDistribution" with expectation 0 and variance 1.

Author(s)

See Also

E, Var

Examples

X <- sin(exp(2*log(abs( Norm())))) ## something weird
X01 <- make01(X)
print(X01)
plot(X01)
sd(X01); E(X01)

distrEx

Extensions of Package 'distr'

v2.8.0
LGPL-3
Authors
Matthias Kohl [cre, cph], Peter Ruckdeschel [aut, cph]
Initial release
2019-03-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.