Learn R Programming

lawstat (version 3.2)

j.maad: MAAD estimated Robust Standard Deviation

Description

This function computes the average absolute deviation from the sample median, which is a consistent robust estimate of the population standard deviation for normality distribution data. NAs from the data are omitted.

Usage

j.maad(x)

Arguments

x

a numeric vector of data values.

Value

A list with the following numeric components.

J

Robust Standard Deviation J

References

Gastwirth, J. L.(1982) Statistical Properties of A Measure of Tax Assessment Uniformity, Journal of Statistical Planning and Inference 6, 1-12.

See Also

cd, gini.index, rqq, rjb.test, sj.test

Examples

Run this code
# NOT RUN {
## Simulate 100 observations: using rnorm() 
## for normally distributed data, X=N(0,1)
x = rnorm(100)
j.maad(x)

## Sample Output
##
## MAAD estimated J = 0.9194124302405 for data x
# }

Run the code above in your browser using DataLab