Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ZOLD-gModel

Old: Class "gModel" - graphical models


Description

The general class gModel contains a formula object and a gmData object. Implementations of different specific graphical model classes can inherit from this class and provide methods for parsing the formula. This is illustrated in the implementation of a class for hierarchical log–linear models, hllm.

Usage

gModel(formula, gmData)

Arguments

formula

an object of class formula.

gmData

an object of class gmData.

Value

gModel creates an object of class gModel with the two components formula and gmData. These components can be retrieved or replaced using the accessor functions of the same names. Also, a gModel object may be manipulated using the dynamicGraph interface.

Author(s)

Søren Højsgaard, sorenh@math.aau.dk,
Claus Dethlefsen, cld@rn.dk

See Also

Examples

data(rats)
rats <- as.gmData(rats)

m1 <- gModel(~.^. , rats)
m1.form <- formula(m1)
m1.data <- gmData(m1)
observations(gmData(m1)) <- observations(rats)[1:10,]

gRbase

A Package for Graphical Modelling in R

v1.8-6.7
GPL (>= 2)
Authors
Søren Højsgaard <sorenh@math.aau.dk>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.