Learn R Programming

BDgraph (version 2.23)

bdgraph.npn: Nonparametric transfer

Description

Transfers non-Gaussian data to Gaussian.

Usage

bdgraph.npn( data, npn = "shrinkage", npn.thresh = NULL )

Arguments

data
It could be a ($n \times p$) matrix or a data.frame corresponding to the data.
npn
A character with three options "shrinkage" (default), "truncation", and "skeptic". Option "shrinkage" is for the shrunken transformation, option "truncation" is for the truncated transfo
npn.thresh
The truncation threshold; it is only for the truncated transformation (when npn = "truncation"). The default value is $1/(4n^{1/4} \sqrt{\pi \log(n)})$.

Value

  • dataA ($n \times p$) matrix of transferred data, if npn = "shrinkage" or "truncation", and a non-paranormal correlation ($p \times p$) matrix, if npn = "skeptic".

References

Liu, H., F. Han, M. Yuan, J. Lafferty, and L. Wasserman (2012). High Dimensional Semiparametric Gaussian Copula Graphical Models, Annals of Statistics 40(4):2293-2326 Zhao, T. and H. Liu (2012). The huge Package for High-dimensional Undirected Graph Estimation in R, Journal of Machine Learning Research, 13:1059-1062

See Also

bdgraph.sim and bdgraph

Examples

Run this code
# generating multivariate normal data from a 'random' graph
data.sim <- bdgraph.sim( n = 6, p = 4, size = 4 )
data     <- ( data.sim $ data - 3 ) ^ 4
data

# transfer the data by truncation 
bdgraph.npn( data, npn = "truncation" )

# transfer the data by shrunken 
bdgraph.npn( data, npn = "shrunken" )

# transfer the data by skeptic 
bdgraph.npn( data, npn = "skeptic" )

Run the code above in your browser using DataLab