Learn R Programming

SLOPE (version 0.5.1)

deviance.SLOPE: Model deviance

Description

Model deviance

Usage

# S3 method for SLOPE
deviance(object, ...)

Value

For Gaussian models this is twice the residual sums of squares. For all other models, two times the negative loglikelihood is returned.

Arguments

object

an object of class 'SLOPE'.

...

ignored

See Also

SLOPE()

Other SLOPE-methods: coef.SLOPE(), plot.SLOPE(), predict.SLOPE(), print.SLOPE(), score()

Examples

Run this code
fit <- SLOPE(abalone$x, abalone$y, family = "poisson")
deviance(fit)

Run the code above in your browser using DataLab