Methods for function Huberize in Package ‘distr’

Share:

Description

Huberize-methods

Usage

1
2
3
4
Huberize(object, ...)
## S4 method for signature 'AcDcLcDistribution'
Huberize(object,lower,upper,
                    withSimplify = getdistrOption("simplifyD"))

Arguments

object

distribution object

...

further arguments for Huberize; takes up lower, upper, withSimplify.

lower

numeric; lower truncation point

upper

numeric; upper truncation point

withSimplify

logical; is result to be piped through a call to simplifyD?

Value

the corresponding distribution of the truncated random variable

Methods

Huberize

signature(object = "AcDcLcDistribution"): returns the unconditioned distribution of min(upper,max(X,lower)), if X is distributed according to object; the result is of class "UnivarLebDecDistribution" in general.

See Also

Truncate

Examples

1
2
3
Hub <- Huberize(Norm(),lower=-1,upper=2)
Hub 
plot(Hub)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.