deviance.TWIX {TWIX}R Documentation

Deviance of the TWIX-trees

Description

Returns the deviance of a fitted model object.

Usage

## S3 method for class 'TWIX':
deviance(object,type="training", ...)

Arguments

object an object of class TWIX or bootTWIX for which the deviance is desired.
type a deviance from test, training or from both data.
... additional arguments.

Value

The value of the deviance extracted from the object object.

See Also

TWIX, predict.TWIX, bootTWIX

Examples

    data(olives)                                                   
    Tree <- TWIX(Region~.,data=olives,topN=c(5,3),method="local")  
    deviance(Tree)

[Package TWIX version 0.2.6 Index]