qtl_pheno_simu: Simulating phenotype values with neighbor effects.

Description Usage Arguments Value Author(s)

View source: R/qtl_pheno_simu.R

Description

A function to simulate phenotype values with multiple sources of variation controlled

Usage

1
2
3
4
5
6
7
8
9
qtl_pheno_simu(
  b_self,
  b_nei,
  eigenK_self,
  eigenK_nei,
  b_ratio = c(1, 1),
  pveB,
  pve
)

Arguments

b_self

A n x 1 genotype vector to design major additive genetic effect.

b_nei

A vector of an explanatory variable for neighbor effects

eigenK_self

Products of eigen() with self covariance matrices that are used as explanatory variables for the phenotype.

eigenK_nei

Products of eigen() with neighbor covariance matrices that are used as explanatory variables for the phenotype.

b_ratio

Ratio for contributions of eigenK_self and eigenK_nei to the phenotype.

pveB

Proportion of variance explained by genetic effects attributable to the fixed effects (i.e., b_.. vector).

pve

Proportion of variance explained by all genetic effects (i.e., b_.. and eigenK_..)

Value

A list of simulated phenotypes

Author(s)

Eiji Yamamoto, and Yasuhiro Sato


rNeighborGWAS documentation built on May 10, 2021, 5:07 p.m.