normalPheno: Simulates a normal distributed phenotype with effects either...

Description Usage Arguments

View source: R/simPheno.R

Description

Simulates a normal distributed phenotype with effects either normal or gamma distributed.

Usage

1
2
normalPheno(snp, n.rep = 1, n.loci = 50, h2 = 0.5, snp.probs = NULL,
  eff.dist = c("gaussian", "gamma"), shape = 0.5)

Arguments

snp

An object of S4 class snpMatrix.

n.rep

Number of replication per individual. For the replication no effects at the phenotype are simulated.

n.loci

Number of loci with effect at the phenotype.

h2

Trait heritability.

snp.probs

A vector of probabilities for each SNP to be selected as a causal loci.

eff.dist

Distribution from which the effects are drown.

shape

See rgamma (only considered if 'eff.dist = gamma').


QTCAT/qtcat.data documentation built on April 20, 2021, 11:20 p.m.