Skip to contents

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

Usage

get_beta_regression_score_cpp(X, y, params)

Arguments

X

A numeric matrix of predictors.

y

A numeric vector of responses (in (0, 1)).

params

A numeric vector of parameters [beta, log_phi].

Value

A numeric vector representing the score.