Learn R Programming

lmerTest (version 3.1-3)

qform: Compute Quadratic Form

Description

Efficiently computes \(x' A x\) - or in R-notation:

Usage

qform(x, A)

Arguments

x

a numeric vector

A

a symmetric numeric matrix

Value

a numerical scalar

Details

Length of x should equal the number of rows and columns of A.