Learn R Programming

gRbase (version 1.3.9)

gRfit: Class "gRfit" - fitted graphical models

Description

Objects of class gRfit are created when the function fit is applied to a gModel object. When adding new types of gModel objects, one must also supply the appropritate fit function. The gRfit object contains the output of the fit which can be accessed by getFit. Separate print and summary methods exist for gRfit objects.

Usage

fit(object, ...)
getFit(x)

Arguments

object
An object for which a fit method has been defined
x
an object of class gRfit as created from fit applied to a gModel object.
...
Additional arguments

Value

  • fit creates an object of class gRfit. getFit returns the fit information created by the fitting algorithm.

See Also

gModel.

Examples

Run this code
data(reinis)
reinis <- as.gmData(reinis)

m1 <- hllm(~.^. , reinis) 
m1 <- fit(m1,engine="loglm")

Run the code above in your browser using DataLab