run.univ: Run univariate analysis

View source: R/analysis_functions.R

run.univR Documentation

Run univariate analysis

Description

Tests the univariate local genetic signal (i.e. the local heritability) for all phenotypes.

Usage

run.univ(locus, phenos = NULL, var = F)

Arguments

locus

Locus object created using the the process.locus function. Contains all the relevant parameters and processed sum-stats for the phenotypes of interest

phenos

Subset of phenotypes to analyse, and/or their order. If NULL, all phenotypes in the locus object will be analysed (in the order listed within the locus object)

var

Set to T to return variance estimate

Value

Data frame with the columns:

  • phen - analysed phenotypes

  • var - local genetic variance

  • h2.obs - observed local heritability

  • h2.latent - estimated local population heritability (only relevant for binary phenotypes; requires population prevalence to be specified in input info file)

  • p - p-values from the univariate test (F-test for continuous, Chi-sq for binary)


josefin-werme/LAVA documentation built on July 4, 2024, 8:11 p.m.