G2P: Simulate a phenotype

Description Usage Arguments Value

View source: R/G2P.function.R

Description

Simulate a phenotypic data from genotypic data.

Usage

1
G2P(X = NULL, h2 = 0.5, alpha = 1, NQTN = 10, distribution = "normal", a2 = 0)

Arguments

X

A genotype matrix (rows = taxa, columns = markers).

h2

The heritability of the simulated trait.

alpha

The p parameter in an approximated geometric distribution

NQTN

The number markers contributing to the phenotype (if known)

a2

The proportion of non-additive interactive variance

Value

A list of the marker effects (1*NQTN), the phenotype (n*1), the combined additive effects (n*1), the residual effects (n*1), the additive marker indices (1*m), and the interaction marker positions (1*nint)


wcrump/GWASP documentation built on April 4, 2020, 5:54 a.m.