Learn R Programming

smooth (version 2.4.7)

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), digits = 5, ...)

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

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

Arguments

x

A variable based on which HM is estimated.

C

Centering parameter.

digits

Number of digits for rounding.

...

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