Learn R Programming

hopit (version 0.11.6)

hopit_derivLL: INTERNAL: The gradient of the log likelihood function

Description

INTERNAL: The gradient of the log likelihood function

Usage

hopit_derivLL(
  parameters = model$coef,
  model,
  collapse = TRUE,
  use_weights,
  negative = FALSE
)

Arguments

parameters

model parameters (optional). If the parameters not delivered, they are taken from the model$coef.

model

a hopit object.

collapse

a logical indicating whether to sum individual LL contributions.

use_weights

a logical indicating whether to use model weights.

negative

a logical indicating whether the function should return negative LL.

Author

Maciej J. Danko