Description Usage Arguments Details Value Examples

View source: R/degreesFreedom.R

Degrees of Freedom of a Covariance Matrix

1 |

`x` |
a matrix with class |

This function uses the `f_eval`

function from the `lazyeval`

package to return the degrees of freedom stored within the `df`

attribute of a `matrix`

object having the additional class
`covariance`

. This evaluation is necessary because the `df`

attribute of a matrix with class `covariance`

is stored as a
`formula`

object.

The degrees of freedom of the covariance matrix, as a `numeric`

object

1 2 | ```
degreesFreedom(cov(iris[,1:4]))
lapply(cov(iris, group = "Species"), degreesFreedom)
``` |

BenBarnard/covEst documentation built on May 5, 2019, 2:40 p.m.

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.