% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlmodel-utils.R
\name{gradientObs}
\alias{gradientObs}
\alias{gradientObs.mlmodel}
\title{Gradient (Score) by Observation}
\usage{
gradientObs(object)

\method{gradientObs}{mlmodel}(object)
}
\arguments{
\item{object}{An \code{mlmodel} object.}
}
\value{
A numeric matrix with one row per observation and one column per
parameter. Each row contains the gradient of the log-likelihood for that
observation.
}
\description{
Extract the per-observation gradients (scores) evaluated at the estimated
parameters from an \code{mlmodel} object.
}
\details{
These are the individual contributions to the score vector. They are mainly
useful for advanced users who want to implement custom tests or diagnostics.
}
