corr_orderedfactor_matrixmatrixC {GauPro}R Documentation

Correlation ordered factor matrix in C (symmetric)

Description

Correlation ordered factor matrix in C (symmetric)

Usage

corr_orderedfactor_matrixmatrixC(x, y, theta, xindex, offdiagequal)

Arguments

x

Matrix x

y

Matrix y

theta

Theta vector

xindex

Index to use

offdiagequal

What to set off-diagonal values with matching values to.

Value

Correlation matrix

Examples

corr_orderedfactor_matrixmatrixC(matrix(c(1,.5, 2,1.6, 1,0),ncol=2,byrow=TRUE),
                                matrix(c(2,1.6, 1,0),ncol=2,byrow=TRUE),
                                c(1.5,1.8), 1, 1-1e-6)
corr_orderedfactor_matrixmatrixC(matrix(c(0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4),
                                  ncol=4, byrow=TRUE),
                                matrix(c(0,0,0,2,0,0,0,4,0,0,0,1),
                                  ncol=4, byrow=TRUE),
  c(0.101, -0.714, 0.114, -0.755, 0.117, -0.76, 0.116, -0.752),
  4, 1-1e-6) * 6.85

[Package GauPro version 0.2.12 Index]