\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\W}[1]{ \; #1 \; }\)
information_mat¶
View page sourceCompute the Observed Information For Fixed Effects¶
Deprecated 2020-03-22¶
Use hes_fixed_obj instead.
Syntax¶
information_mat (Purpose¶
Compute the observed information matrix. We use \(L ( \theta )\) to denote the fixed effects objective . The observed information is
Absolute value terms in the Negative Log-Density Vector for the fix_likelihood are not include in this Hessian (because they do not have a derivative, let alone Hessian, at zero).
mixed_object¶
We use mixed_object
to denote an object of a class that is
derived from the cppad_mixed base class.
solution¶
is the solution
for a previous call to optimize_fixed .
Only the solution . fixed_opt field is used.
random_opt¶
is the optimal random effects corresponding to the solution; i.e.
optimize_random (fixed_opt ,random_options ,
random_lower ,
random_upper , and
random_in , are the same
as in the call to optimize_fixed that corresponds to solution .
information_rcv¶
The return value has prototype
CppAD::mixed::d_sparse_rcvinformation_rcv
see d_sparse_rcv . This is a sparse matrix representation for the lower triangle of the observed information matrix, which is symmetric and hence determined by its lower triangle. Absolute value terms in the Negative Log-Density Vector for the fix_likelihood are not include in this Hessian because they do not have a derivative (let alone Hessian) at zero.
Example¶
The file information_mat.cpp contains an example and test of this routine. It returns true for success and false for failure.