Learn R Programming

pleioh2g (version 0.1.0)

perform_analysis: Internal function to perform LDSC heritability/covariance analysis - refer to ldscr R package (https://github.com/mglev1n/ldscr)

Description

`perform_analysis()` Internal function to perform LDSC heritability/covariance analysis

Usage

perform_analysis(n.blocks, n.snps, weighted.LD, weighted.chi, N.bar, m)

Value

A list containing the results of the LDSC heritability/covariance analysis with the following elements:

  • reg.tot: Estimated total heritability or covariance (regression coefficient scaled by m).

  • tot.se: Standard error of the total heritability/covariance estimate, computed using a block jackknife.

  • intercept: LDSC regression intercept.

  • intercept.se: Standard error of the intercept, estimated via block jackknife.

  • pseudo.values: Vector of pseudo-values from the block jackknife procedure, one per block.

  • N.bar: Average sample size across SNPs after merging.

Arguments

n.blocks

Number of blocks

n.snps

Number of SNPs

weighted.LD

wld score

weighted.chi

chi-square

N.bar

Average N after merging

m

Number of SNPs from LD data