Learn R Programming

greybox (version 0.6.4)

hm: Half moment of a distribution and its derivatives.

Description

hm function estimates half moment from some predefined constant C. ham estimates half absolute moment. Finally, cbias function returns bias based on hm.

Usage

hm(x, C = mean(x), ...)

ham(x, C = mean(x), ...)

cbias(x, C = mean(x), ...)

Arguments

x

A variable based on which HM is estimated.

C

Centering parameter.

...

Other parameters passed to mean function.

Value

A complex variable is returned for hm function and real values are returned for cbias and ham.

Details

NA values of x are excluded on the first step of calculation.

Examples

Run this code
# NOT RUN {
x <- rnorm(100,0,1)
hm(x)
ham(x)
cbias(x)

# }

Run the code above in your browser using DataLab