get_covariance | R Documentation |
Use a sandwich estimator to return the standard errors for the full multivariate mixed model.
get_covariance(hessian, cpgradient, parameters, A, data, id)
hessian |
The sparse Hessian matrix for the MMM returned by the average_hessians function(). |
cpgradient |
The cross-product and average of the subject level gradients returned by the get_crossproducts() function. |
parameters |
The parameter estimates returned by the stack_parameters() function. |
A |
the A helper matrix returned by the create_A_matrix function(). |
data |
The data.frame with original data in long format. |
id |
A character value with the subject identifier in the orginal data. |
A data.frame with parameter estimates and standard errors for the multivariate mixed model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.