numberParams {NewWave}R Documentation

Generic function that returns the total number of parameters of the model

Description

Given an object that describes a model or a dataset, it returns total number of parameters of the model.

Usage

numberParams(model)

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

Arguments

model

an object that describes a dataset or a model.

Value

the total number of parameters of the model.

Functions

Examples

a <- newmodel(n=5, J=10)
numberParams(a)

[Package NewWave version 1.0.2 Index]