Learn R Programming

gRapHD (version 0.2.5)

modelDim: Model's dimension

Description

Calculates the number of free parameters in the model.

Usage

modelDim(model)

Arguments

model

gRapHD class.

Value

Number of free parameters in the model.

Details

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

References

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

Examples

Run this code
# NOT RUN {
data(dsCont)
m <- minForest(dsCont,stat="BIC")
modelDim(m)
# 102

m <- stepw(m,dsCont,stat="BIC")
modelDim(m)
# 149
# }

Run the code above in your browser using DataLab