# C language function:mad sample codes

Search sample code in the internet.It is the result.

TITLE : matrixStats: Summary of functions
http://cran.r-project.org/web/packages/matrixStats/vignettes/matrixStats-methods.html

TITLE : matrixStats: Summary of functions
http://cran.r-project.org/web/packages/matrixStats/vignettes/matrixStats-methods.html
TITLE : Absolute Deviation Around the Median – Kevin Davenport
mad(x, center = median(x), constant = 1.4826,.......
http://kldavenport.com/absolute-deviation-around-the-median/
TITLE : WGCNA for RNA-Seq Sample Set, Outliers, and Spearman correlation
The warnings actually tell you that some columns had zero MAD; the wording is poor and I will improve it to remove the mentioning of NA. To identify cases where mad=0, simply run mad.x = apply(x,2, mad) (substitute your data for x) or colMads(x) from package matrixStats (faster than apply). Then check which mad.x are zero........
http://support.bioconductor.org/p/65124/
TITLE : Statistics – Desmos
http://support.desmos.com/hc/en-us/articles/204311369-Statistics
http://www.okstate.edu/sas/v8/sashtml/iml/chap17/sect146.htm
http://www.okstate.edu/sas/v8/sashtml/iml/chap17/sect146.htm
http://www.okstate.edu/sas/v8/sashtml/iml/chap17/sect146.htm
http://www.okstate.edu/sas/v8/sashtml/iml/chap17/sect146.htm
http://www.okstate.edu/sas/v8/sashtml/iml/chap17/sect146.htm
http://www.okstate.edu/sas/v8/sashtml/iml/chap17/sect146.htm
TITLE : mad function | R Documentation
mad(x, center = median(x), constant = 1.4826, na.rm = FALSE,.......
TITLE : mad function | R Documentation
The default constant = 1.4826 (approximately $$1/\Phi^{-1}(\frac 3 4)$$ = 1/qnorm(3/4)) ensures consistency, i.e., $$E[mad(X_1,\dots,X_n)] = \sigma$$ for $$X_i$$ distributed as $$N(\mu, \sigma^2)$$ and large $$n$$........
=MAD($B$2:$B$30) Median of absolute deviation (1).......