modelDim {gRapHD}R Documentation

Calculate the dimension of a model.

Description

Calculates the number of free parameters in the model.

Usage

  modelDim(model)

Arguments

model gRapHD class.

Details

See Lauritzen (1996), pages 202-203, and 215-216 for more details.

Value

Number of free parameters in the model.

Author(s)

Gabriel Coelho Goncalves de Abreu (Gabriel.Abreu@agrsci.dk)
Rodrigo Labouriau (Rodrigo.Labouriau@agrsci.dk)
David Edwards (David.Edwards@agrsci.dk)

References

Lauritzen, S.L. (1996) Graphical Models, Oxford University Press.

Examples

  data(dsMixed)
  m <- minForest(dsMixed,homog=TRUE,stat="LR")
  modelDim(m)
  # 71

  m <- minForest(dsMixed,homog=FALSE,stat="LR")
  modelDim(m)
  # 111

[Package gRapHD version 0.1.0 Index]