get_cov: Create covariance matrix

View source: R/get_cov.R

get_covR Documentation

Create covariance matrix

Description

The function returns the covariance matrix for the multivariate normal distribution of lg_subject, l_subject, l_parent1, l_parent2, l_sibling1, ... ,l_siblingN

Usage

get_cov(h2, n_sib = 0)

Arguments

h2

The heritability of trait.

n_sib

Amount of siblings.

Value

Covariance matrix of datatype matrix.

Examples

get_cov(0.5, n_sib = 2)

Holdols/genstats documentation built on June 10, 2022, 6:05 a.m.