| stack_gradients | R Documentation |
Take the gradients returned by the get_mmm_derivatives function and stack these into a single data.frame for further processing
stack_gradients(derivatives, data, id, pairs)
derivatives |
list with derivatives returned by the get_mmm_derivatives() function. |
data |
The data.frame with original data in long format. |
id |
A character value with the subject identifier in the orginal data. |
pairs |
A character matrix with pairs returned by the make_pairs function. |
parameter_labels |
The parameter labels returned by the stack_parameters() function. |
A data.frame with subject level gradients for every longitudinal outcome
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.