Description Usage Arguments Value Examples

This function returns the expected covariance matrix of a trait vector simulated via `sim_trait`

.
Below let there be *n* individuals.

1 | ```
cov_trait(kinship, herit, sigma_sq = 1)
``` |

`kinship` |
The |

`herit` |
The heritability |

`sigma_sq` |
Overall variance multiplicative factor |

The *n-by-n* trait covariance matrix equal to

*σ^2 ( 2 h^2 Φ + (1-h^2) I ),*

where *I* is an *n-by-n* identity matrix.

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.