Skip to contents

Calculates the score vector (gradient of the log-likelihood) for a negative binomial regression model.

Usage

get_negbin_regression_score_cpp(X, y, params)

Arguments

X

A numeric matrix of predictors.

y

A numeric vector of responses (non-negative integers).

params

A numeric vector of parameters [beta, log_theta].

Value

A numeric vector representing the score.