powered by
Takes a sample, its dimension, a sub-sample size, and returns a discrete copula.
corc(dataframe, varnames, subsampsize, nbsafe=5,mixties=FALSE,nthreads=2)
an array representing the discretized copula
the number of sub-samples with a tie
the effective number of sub-samples drawn
the name of the variables studied
the number of observations without missing values
a data frame, containing the observations
the name of the variables we want to estimate the dependence between
the sub-sample size
the ratio between the number of sub-samples and the cardinality of the discretized copula.
if TRUE, put equal weight on tied values, using random permutations
TRUE
number of number of threads, assumed to be strictly positive. For "full throttle" computations, consider using parallel::detectCores()
Jerome Collet
lon <- 30 a <- 2 x <- rnorm(lon) y = a*x^2+rnorm(lon) datatable = as.data.frame(cbind(x,y)) c=corc(datatable,c("x","y"),8) c sum(c$cop)
Run the code above in your browser using DataLab