View source: R/colocboost_inference.R
get_cormat | R Documentation |
This function calculates the correlation matrix (LD matrix) from individual level data.
get_cormat(X, intercepte = TRUE)
X |
A matrix of individual level data. |
intercepte |
A logical value indicating whether to include an intercept in the model. Default is FALSE. |
A correlation matrix (LD matrix).
Other colocboost_utilities:
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.