grads |

Gradients of the objective function.

Displays the gradients of the objective function (where available) for an estimated likelihood object.

The (default) summary form shows the value of the gradient vector at the estimated parameter values (if valid estimates exist) or at the current coefficient values. Evaluating the gradients at current coefficient values allows you to examine the behavior of the objective function at starting values. The tabular form shows a spreadsheet view of the gradients for each observation. The graphical form shows this information in a multiple line graph.

Syntax

logl_name.grads(options)

Options

g | Display multiple graph showing the gradients of the objective function with respect to the coefficients evaluated at each observation. |

t (default) | Display spreadsheet view of the values of the gradients of the objective function with respect to the coefficients evaluated at each observation. |

p | Print results. |

Examples

To show a summary view of the gradients:

ll2.grads

To display and print the table view:

ll2.grads(t, p)

Cross-references