Learn R Programming

gkwreg (version 1.0.7)

.calculate_residuals: Calculate residuals based on the specified type

Description

Calculate residuals based on the specified type

Usage

.calculate_residuals(y_obs, fitted_vals, param_mat, type, family)

Value

A vector of residuals

Arguments

y_obs

Vector of observed values

fitted_vals

Vector of fitted values

param_mat

Matrix of calculated parameters

type

Character string specifying residual type

family

Character string specifying distribution family