Learn R Programming

glmmrBase (version 0.2.5)

genD: Generates the covariance matrix of the random effects

Description

Generates the covariance matrix of the random effects from a sparse representation. Used internally in the Covariance class.

Usage

genD(cov, data, eff_range, gamma)

Value

A symmetric positive definite covariance matrix

Arguments

cov

An integer matrix with columns of block identifier, dimension of block, function definition, number of variables in the argument to the funciton, and index of the parameters, respectively. Rows are specific functions of each block.

data

Vector of data. Created by flattening the matrices in column-major order of the data used in each block.

eff_range

Vector of values with the effective range parameters of the covariance functions, where required.

gamma

Vector of parameters used to generate the matrix D.