average_hessians: Average the Hessians

View source: R/fit_mmm.R

average_hessiansR Documentation

Average the Hessians

Description

...

Usage

average_hessians(derivatives, pairs, data, id, A)

Arguments

derivatives

the derivatives returned by get_mmm_derivatives().

pairs

A character matrix with pairs returned by the make_pairs function.

data

The data.frame with original data in long format.

id

A character value with the subject identifier in the orginal data.

A

the A helper matrix returned by the create_A_matrix function.

Value

a Sparse matrix of the MMM Hessian


JanvandenBrand/jmmm documentation built on May 30, 2022, 9:37 a.m.