quad_form {micsr} | R Documentation |
Compute quadratic form
Description
Compute quadratic form of a vector with a matrix, which can be the vector of coefficients and the covariance matrix extracted from a fitted model
Usage
quad_form(x, m = NULL, inv = TRUE, subset = NULL, vcov = NULL, ...)
Arguments
x |
a numeric vector or a fitted model |
m |
a square numeric matrix |
inv |
a boolean, if |
subset |
a subset of the vector and the corresponding subset of the matrix |
vcov |
if |
... |
arguments passed to |
[Package micsr version 0.1-3 Index]