est_paras: A function implementing LD score regression.

Description Usage Arguments Value

View source: R/est_paras.R

Description

A function implementing LD score regression.

Usage

1
2
3
4
5
6
7
8
est_paras(
  dat1,
  dat2,
  trait1.name = "exposure",
  trait2.name = "outcome",
  h2.fix.intercept = F,
  ldscore.dir = NULLL
)

Arguments

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'.

h2.fix.intercept:

whether to fix LD score regression intercept to 1, default 'FALSE'.

ldscore.dir:

specify the path to the LD score files.

Value

List with the following elements:

Mdat

Homonised data set

Sigma_err

the estimated residual covariance matrix of Z scores.

Omega

the estimated covariance matrix of background effects


YangLabHKUST/MRAPSS documentation built on Dec. 12, 2020, 11:36 p.m.