grmsem.biher: grmsem bivariate heritability estimation function.

Description Usage Arguments Details Value Examples

View source: R/grmsem.biher.R

Description

This function estimates the bivariate heritability.

Usage

1
grmsem.biher(ph, grmsem.var.out = NULL)

Arguments

ph

Phenotype file as R dataframe (columns: >=2 phenotypes, rows: ni individuals in the same order as G). No default.

grmsem.var.out

A grmsem.var object with unstandardised parameters (factor loadings). Default NULL.

Details

The grmsem.biher function estimates the bivariate heritability (DS, Cholesky, IP and IPC models) from the observed phenotype data and a grmsem.var object. All standard errors are derived with the Delta method.

Value

grmsem.biher returns a list object consisting of the following matrices:

VPO

observed phenotypic variance/covariance matrix

VA

estimated genetic variance

BIHER

estimated bivariate heritability (off-diagonals): VA / VPO

BIHER.se

standard error of estimated bivariate heritability

BIHER.Z

Z (wald) of estimated bivariate heritability

BIHER.p

p (Wald) of estimated bivariate heritability

Examples

1
2
3
4
5
#(runtime should be less than one minute)

out <- grmsem.fit(ph.small, G.small, LogL = TRUE, estSE = TRUE)
var.out <- grmsem.var(out)
grmsem.biher(ph.small, var.out)

grmsem documentation built on Jan. 29, 2021, 5:07 p.m.