powered by
Performs conditional distance covariance with given bandwidth.
cdcov(x, y, z, width, index = 1)
a numeric vector or matrix
a numeric vector or matrix with compatible dimensions to x
x
the variable being conditioned. z is a numeric vector or matrix with compatible dimensions to x
z
a positive value, user-specified
exponent on Euclidean distance, in (0,2]
conditional distance covariance with given variable z; has the same length with z
the bandwidth
Perform the measurement of the conditional independence between x and y given z with given bandwidth.
Canhong Wen, Wenliang Pan, Mian Huang and Xueqin Wang(2014). Conditional distance correlation sure independence screening for ultrahigh dimensional data. Submitted to Biostatistics.
cdcor
# NOT RUN { x <- rnorm(100) y <- rnorm(100) z <- rnorm(100) cdcov(x,y,z,0.25) # }
Run the code above in your browser using DataLab