Description Usage Arguments Examples
This function generate multivariate uniform distribution with designed copula family and therotical Concordance probability (C-index, iAUC, AUC)
1 2 3 4 5 6 7 8 9 |
N |
sample size |
metric |
simulate metric (C-index, iAUC, AUC) |
value |
of therotical value of (C-index, iAUC, AUC) |
family |
d - 1 dimension of copula family, where d is number of covariates check |
c0 |
prevalence; cutoff point of latent uniform parameter (Used in AUC) |
fam2 |
higher order copula family ( dimension: (d^2 - 3d + 2)/2 ) (default: conditional independent) |
par2 |
parameters of higher order copula family ( dimension: (d^2 - 3d + 2)/2 ) (default: all 0) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # C-index
#U1 = simuCCP(300, metric = "Cind", value = 0.7, family = c(1,3))$data
#( cor(U1, method = "kendall") + 1 ) / 2
# C-index with a dependent copula
#U1 = simuCCP(300, metric = "Cind", value = 0.7, family = c(1,3), fam2 = 3, par2 = 1)$data
#( cor(U1, method = "kendall") + 1 ) / 2
# AUC
#U1 = simuCCP(300, metric = "AUC", value = 0.7, family = c(1,3))$data
#library(pROC)
#apply(U1[,-1], 2, function(x) auc(U1[,1], x) )
# AUC with a dependent copula
#U1 = simuCCP(300, metric = "AUC", value = 0.7, family = c(1,3), fam2 = 3, par2 = 1)$data
#library(pROC)
#apply(U1[,-1], 2, function(x) auc(U1[,1], x) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.