Stata 15 help for mf_trace_ABBAV

Title

[M-5] trace_ABBAV() -- Obtain trace of a special-purpose matrix

Syntax

real scalar trace_ABBAV(real matrix A, real matrix B, real colvector v)

Description

trace_ABBAV(A, B, v) returns trace(A'*B'*B*A*diag(v))

trace_ABBAV() is an undocumented function.

Remarks

This calculation arises in certain spatial statistical calculations.

Conformability

trace_ABBAV(A, B, v): A: n x n B: n x n v: n x 1

Diagnostics

trace_ABBAV(A, B, v) aborts with error if A, B, or v is a view.

Source code

Function is built in.


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index