n = 100
L = huge.generator(n=n, graph = "hub")
# nonparanormal transformation using the shrunken ECDF
Q = huge.npn(L$data)
# nonparanormal transformation using the truncated ECDF
Q = huge.npn(L$data, npn.func = "truncation")
# nonparanormal transformation using truncated ECDF with specific threhold
Q = huge.npn(L$data, npn.func = "truncation", npn.thresh = 1/n)
Run the code above in your browser using DataLab