View source: R/sample_traits.R
sample.traits | R Documentation |
sample traits from multivariate normal distribution with one trait fixed
sample.traits(tr.levels, fix.dim, sigma, n = 10)
tr.levels |
vector: levels for fixed trait |
fix.dim |
scalar: dimension to fix |
sigma |
matrix: trait correlations |
n |
scalar: number of samples for each trait level, defaults to 10 |
traits correlating as specified in sigma, with dimension fix.dim fixed to tr.levels
sample.traits(seq(-2,2,1), fix.dim=2, sigma=diag(3), n=100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.