cov2biu: Bi-unit Canonical Form

Description Usage Arguments Value Examples

Description

cov2biu(S) returns the bi-unit canonical form of S.

Usage

1
cov2biu(S, nu = rep(1, nrow(S)), force = FALSE, detail = FALSE)

Arguments

S

Covariance matrix, especially it is positive semi-definite.

nu

Numeric vector of subjective importance. It determines the importance of each of the variates.

force

Logical: if force=FALSE, S should be strictly positive definite. Default: FALSE.

detail

Logical: if detail=TRUE, it returns the list of the bi-unit form and the weight vectors. Default: FALSE.

Value

Numeric matrix of the bi-unit canonical form DSD of S.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
S = matrix(0, 5, 5)
S[1,1] = 1
for(j in 2:5) S[1,j] = S[j,1] = -0.5
for(i in 2:5){
  for(j in 2:5){
    if(i == j) S[i,j] = 1
    else S[i,j] = 0.5
  }
}
B=cov2biu(S)
B

OGI documentation built on May 2, 2019, 8:55 a.m.

Related to cov2biu in OGI...