Learn R Programming

neuralGAM (version 2.0.1)

dev: Deviance of the model

Description

Computes the deviance of the model according to the distribution family specified in the "family" parameter.

Usage

dev(muhat, y, family, w = NULL)

Value

the deviance of the model

Arguments

muhat

current estimation of the response variable

y

response variable

family

A description of the link function used in the model: "gaussian", "poisson", or "binomial"

w

weight assigned to each observation. Defaults to 1.

Author

Ines Ortega-Fernandez, Marta Sestelo.