est_paras | R Documentation |
A function harmonising datasets and estimate background parameters by LD score regression.
est_paras(
dat1,
dat2,
trait1.name = "exposure",
trait2.name = "outcome",
LDSC = T,
h2.fix.intercept = F,
ldscore.dir = NULLL
)
dat1: |
formmated summary statistics for trait 1. |
dat2: |
formmated summary statistics for trait 2. |
trait1.name: |
specify the name of trait 1, default 'exposure'. |
trait2.name: |
specify the name of trait 2, default 'outcome'. |
LDSC: |
whether to run LD score regression, default 'TRUE'. If 'FALSE', the function will not give the parameter estimates but will do harmonising. |
h2.fix.intercept: |
whether to fix LD score regression intercept to 1, default 'FALSE'. |
ldscore.dir: |
specify the path to the LD score files. |
List with the following elements:
Homonised data set
the estimated C matrix capturing the effects of sample structure
the estimated variance-covariance matrix for polygenic effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.