h_quad_form {mmrm} | R Documentation |
Quadratic Form Calculations
Description
These helpers are mainly for easier readability and slightly better efficiency of the quadratic forms used in the Satterthwaite calculations.
Usage
h_quad_form_vec(vec, center)
h_quad_form_mat(mat, center)
Arguments
vec |
( |
center |
( |
mat |
( |
Functions
-
h_quad_form_vec()
: calculates the numbervec %*% center %*% t(vec)
as a numeric (not a matrix). -
h_quad_form_mat()
: calculates the quadratic formmat %*% center %*% t(mat)
as a matrix, the result is square and has dimensions identical to the number of rows inmat
.
[Package mmrm version 0.3.15 Index]