get_crossproducts | R Documentation |
Get the cross product of the subject specific gradient vector, sum and take the average
get_crossproducts(pairs, parameter_labels, gradients, data, id)
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. |
A matrix with the average gradient for all parameters over all subjects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.