Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lab-hcso/SumVg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SumVg: Estimating the standard error of the total heritability explained by all variants in GWAS

Hon-Cheong SO

Introduction

The R package SumVg provides estimates of the sum of heritability explained by all true susceptibility variants in GWAS. We have also recently derived methods to estimate the standard error (SE) based on re-sampling approaches. These methods have been implemented in the R package SumVg. Please also refer to SumVg.pdf for a detailed documentation of the program.

Installation

To install the SumVg R package from GitHub using devtools, run

devtools::install_github("lab-hcso/SumVg")

To install the SumVg R package by file,

downloading the tar file SumVg_1.0.tar.gz from GitHub, run

install.packages("C:/SumVg_1.0.tar.gz", repos=NULL)

Usage

library(SumVg)

## Simulate z-statistics under the complete null for testing
zall = rnorm(n=10000, mean=0, sd = 1)

## Examples using delete-d-jackknife 
## Assume the outcome is continuous
SumVg(zall=zall, totalN=10000, method="jack", d=2000, repl=5,out="unconditional") 

## Assume the outcome is binary
## SE and MAF are made up for reference only
SumVg.binary(zall=zall, method="paraboot", d=1, repl=5, out="unconditional", SE= rep(0.1,10000), K=0.01, MAF=rep(0.2, 10000) )

Citation

To cite this project in publications use:

About

Estimating the standard error of the total heritability explained by all variants in GWAS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages