score: Extract score function

scoreR Documentation

Extract score function

Description

Extract the score function (gradient of the log-likelihood) from a model object.

Usage

score(x, ...)

Arguments

x

Model object

...

Additional arguments to lower level functions

Value

Matrix of score/gradient values. Rows correspond to observations (if indiv=TRUE) or a single row, columns to parameters.


lava documentation built on Oct. 23, 2026, 1:09 a.m.