Skip to contents

Computes the gradient of a linear combination of beta given the Jacobian matrix and variance parameters.

Usage

h_gradient(jac_list, contrast)

Arguments

jac_list

(list)
Jacobian list produced e.g. by h_jac_list().

contrast

(numeric)
contrast vector, which needs to have the same number of elements as there are rows and columns in each element of jac_list.

Value

Numeric vector which contains the quadratic forms of each element of jac_list with the contrast vector.