Object Reference : Object View and Procedure Reference : Equation
  
 
grads
Gradients of the objective function.
Displays the gradients of the objective function. Evaluating the gradients at current coefficient values allows you to examine the behavior of the objective function at starting values.
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.
You may optionally choose to display the results in tabular or graphical form. 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
equation_name.grads(options)
Options
 
t
Display spreadsheet view of the values of the gradients of the objective function with respect to the coefficients evaluated at each observation.
g
Display multiple graph showing 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:
eq1.grads
To display and print the table view:
eq1.grads(t, p)
Cross-references
See also Equation::derivs, Equation::makederivs, and Equation::makegrads.