newpenalty: Compute the penalty of a model

newpenaltyR Documentation

Compute the penalty of a model

Description

Given a statistical model with regularization parameters, compute the penalty.

Usage

newpenalty(model)

## S4 method for signature 'newmodel'
newpenalty(model)

Arguments

model

an object that describes a statistical model with regularization parameters.

Value

The penalty of the model.

Methods (by class)

  • newmodel: return the penalization.

Examples

m <- newmodel(K=2)
newpenalty(m)

fedeago/NewWave documentation built on March 28, 2022, 5:46 a.m.