Learn R Programming

gkwreg (version 1.0.7)

calculateScoreResiduals: Calculate Score Residuals

Description

Computes score residuals based on the numerical derivative (score) of the log-likelihood with respect to the observation.

Usage

calculateScoreResiduals(y, fitted, params, family = "gkw")

Value

NumericVector of score residuals.

Arguments

y

NumericVector of observations.

fitted

NumericVector of fitted values (means).

params

NumericMatrix with parameters (columns: alpha, beta, gamma, delta, lambda).

family

String specifying the distribution family (default: "gkw").