Description Usage Arguments Details Value Note Author(s) Examples

Generates a variance-covariance matrix from variances and correlations

1 | ```
covmat(vars, cors, tol=1e-7)
``` |

`vars` |
a numeric vector of variances |

`cors` |
a numeric vector of correlations: replicated to the appropriate length if necessary |

`tol` |
numeric tolerance for checking positive definiteness |

Creates a variance-covariance matrix with the specified variances and correlations.

A square numeric matrix.

Warns, but does not stop, if the matrix is non-positive-definite.

Ben Bolker

1 |

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.