calculatePearsonResiduals: Calculate Pearson Residuals

View source: R/RcppExports.R

calculatePearsonResidualsR Documentation

Calculate Pearson Residuals

Description

Computes the Pearson residuals based on the observed values, fitted means, and the approximate variance of the distribution.

Usage

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

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").

Value

NumericVector of Pearson residuals.


gkwreg documentation built on April 16, 2025, 1:10 a.m.