Assign Matrix to a pdKron Object

DESCRIPTION:

If value has the same dimensions as the basic pd matrix used in the Kronecker product represented by object, it replaces the basic pd matrix. Otherwise, if value has the same dimensions as as.matrix(object) , the average of the block diagonal elements of value of dimensions equal to that of the basic pd matrix replaces the latter. If the original matrix represented by object (or the corresponding basic pd matrix) had row and/or column names, the corresponding names for value can either be NULL , or a permutation of the original names.

USAGE:

matrix(object) <- value 

REQUIRED ARGUMENTS:

object
an object inheriting from class pdKron, representing a Kronecker-product positive definite matrix.
value
a matrix with the new values to be assigned to the basic positive-definite matrix used in the Kronecker product represented by object. It can either have the same dimensions as the basic pd matrix, or the same dimensions as as.matrix(object).

VALUE:

a pdKron object similar to object, but with its coefficients modified to produce the matrix in value, or, depending on the dimensions of value, the average of the block diagonal elements of value.

SEE ALSO:

EXAMPLES:

pd1 <- pdKron(~day, data = Pixel, groups = ~Side) 
matrix(pd1) <- 3 * diag(2) + 1 
pd1 
matrix(pd1) <- 3 * diag(4) + 1 
pd1