cov_diag_check: Covariance Diagonal Check

Description Usage Arguments Details Value See Also Examples

Description

Identifies any zero entries along the diagonal of a matrix.

Usage

1

Arguments

cov

a matrix.

Details

Intended to be a helper function for flagging zero variance variables whenever the input is a covariance matrix. A covariance matrix containing zeros on the diagonal will be singular; and hence, non-invertible.

Value

See Also

cov_check

Examples

1
2
3
4
cov1 <- diag(c(1,0,3,0))
cov2 <- diag(1:4)
cov_diag_check(cov1)
cov_diag_check(cov2)

TheLondonPeacock/SeaClass documentation built on May 8, 2019, 3:42 p.m.