qpDscale {qpgraph} | R Documentation

## Scale a matrix by its diagonal

### Description

Scales the values of a matrix by the values on the diagonal.

### Usage

    qpDscale(V)

### Arguments

`V` | matrix with numerical values.

### Details

The scaling of the values of the matrix by its diagonal is made using the outer product of the inverted square root of the diagonal.

### Value

A scaled matrix such that the diagonal values become the unit.

### Author(s)

R. Castelo and A. Roverato

### References

Castelo, R. and Roverato, A. A robust procedure for Gaussian graphical model search from microarray data with p larger than n. J. Mach. Learn. Res., 7:2621-2650, 2006.

### See Also

`qpK2R`

### Examples

    m <- matrix(1:9, nrow=3)

    m

    qpDscale(m)

[Package qpgraph version 1.0.0 Index]