Generate random data for test purposes

Share:

Description

Generates a random marker-matrix in {-1,0,1} coding and a phenotype vector.
Phenotypic variance times h2 (variance explained by markers) is equally spread among
all markers (sampled from uniform distribution).