Learn R Programming

lava (version 1.9.3)

score: Extract score function

Description

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

Usage

score(x, ...)

Value

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

Arguments

x

Model object

...

Additional arguments to lower level functions