Power operator for distribution objects.

# S3 method for class 'dist'
x^y

Arguments

x

a dist object (base)

y

a numeric scalar (exponent)

Value

A simplified distribution or edist

Examples

# Standard normal squared yields chi-squared(1)
z <- normal(0, 1)^2
z
#> Chi-squared distribution (df = 1)