gRbase
. A model object is defined using
hllm
, fitted using fit
(which calls loglm
)
and a model search performed
using stepwise
. The models may be displayed and manipulated
using the gRbase
.hllm(formula = ~.^1, gmData, marginal)
## S3 method for class 'hllm':
fit(object, engine="loglm", ...)
formula
. The right
hand side of the formula is a list of the generators separated by
+
. A generator is specified by variable names with separated
by *
gmData
.gmData
object.hllm
returns an object of class hllm
, inheriting
from the superclass gModel
.gmData
, gRfit
, ggm
data(reinis)
reinis <- as.gmData(reinis)
m2 <-
hllm(~smoke*phys*protein+mental*phys+mental*family+smoke*systol*protein,
reinis)
m2 <- fit(m2,engine="loglm")
## plot(m2)
Run the code above in your browser using DataLab