get_crossproducts: Get cross products of the gradients

get_crossproductsR Documentation

Get cross products of the gradients

Description

Get the cross product of the subject specific gradient vector, sum and take the average

Usage

get_crossproducts(pairs, parameter_labels, gradients, data, id)

Arguments

pairs

A character matrix with pairs returned by the make_pairs function.

parameter_labels

The parameter labels returned by the stack_parameters() function.

gradients

A data frame with gradients returned by the stack_gradients() function.

data

The data.frame with original data in long format.

id

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

Value

A matrix with the average gradient for all parameters over all subjects.


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