sdY.est: Estimate trait variance, internal function

Description Usage Arguments Details Value Author(s)

View source: R/functions_moloc.R

Description

Estimate trait standard deviation given vectors of variance of coefficients, MAF and sample size

Usage

1
sdY.est(vbeta, maf, n)

Arguments

vbeta

vector of variance of coefficients

maf

vector of MAF (same length as vbeta)

n

sample size

Details

Estimate is based on var(beta-hat) = var(Y) / (n * var(X)) var(X) = 2*maf*(1-maf) so we can estimate var(Y) by regressing n*var(X) against 1/var(beta)

Value

estimated standard deviation of Y

Author(s)

Chris Wallace


clagiamba/moloc documentation built on Jan. 25, 2021, 2:43 a.m.