powered by
This function calculates the correlation matrix (LD matrix) from individual level data.
get_cormat(X, intercepte = TRUE)
A correlation matrix (LD matrix).
A matrix of individual level data.
A logical value indicating whether to include an intercept in the model. Default is FALSE.
Other colocboost_utilities: get_cos(), get_cos_purity(), get_cos_summary(), get_hierarchical_clusters(), get_ucos_summary()
get_cos()
get_cos_purity()
get_cos_summary()
get_hierarchical_clusters()
get_ucos_summary()
# colocboost example set.seed(1) N <- 1000 P <- 100 # Generate X with LD structure sigma <- 0.9^abs(outer(1:P, 1:P, "-")) X <- MASS::mvrnorm(N, rep(0, P), sigma) cormat <- get_cormat(X)
Run the code above in your browser using DataLab